fix: fix the 10 billion mistakes made in refactoring

This commit is contained in:
leonhard committed 2026-11-13 13:27:33 +01:00
1 parent 5c6888a352
commit f3415cbdf7
7 files changed
+74 -64

No files matched your search

+53 -51
View File
@@ -26,67 +26,69 @@
};
};
nix-leonhard.graphical = false;
config = {
nix-leonhard.graphical = false;
# Intentional antipattern for information that is not
# critical but should still not be in the config
nix-leonhard.domain = builtins.readFile config.sops.secrets.domain.path;
nix-leonhard.publicKeys = builtins.readFile config.sops.secrets.domain.publicKeys;
# Intentional antipattern for information that is not
# critical but should still not be in the config
nix-leonhard.domain = builtins.readFile config.sops.secrets.domain.path;
nix-leonhard.publicKeys = builtins.readFile config.sops.secrets.domain.publicKeys.path;
users.users.leonhard = {
initialPassword = "leonhard";
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = config.nix-leonhard.publicKeys;
};
users.users.leonhard = {
initialPassword = "leonhard";
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = config.nix-leonhard.publicKeys;
};
networking = {
hostName = "server";
firewall.enable = false;
interfaces.eno1 = {
ipv4.addresses = [
{
address = "192.168.178.210";
prefixLength = 24;
}
networking = {
hostName = "server";
firewall.enable = false;
interfaces.eno1 = {
ipv4.addresses = [
{
address = "192.168.178.210";
prefixLength = 24;
}
];
};
defaultGateway = {
address = "192.168.178.1";
interface = "eno1";
};
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
};
defaultGateway = {
address = "192.168.178.1";
interface = "eno1";
services.openssh = {
enable = true;
ports = [ 5432 ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
};
services.openssh = {
enable = true;
ports = [ 5432 ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
security.acme = {
acceptTerms = true;
defaults.email = "admin@${config.nix-leonhard.domain}";
defaults.webroot = "/var/lib/acme/acme-challenge/";
certs.${config.nix-leonhard.domain} = {
group = config.services.nginx.group;
};
};
};
security.acme = {
acceptTerms = true;
defaults.email = "admin@${config.nix-leonhard.domain}";
defaults.webroot = "/var/lib/acme/acme-challenge/";
certs.${config.nix-leonhard.domain} = {
group = config.services.nginx.group;
};
};
services.nginx = {
enable = true;
services.nginx = {
enable = true;
virtualHosts.${config.nix-leonhard.domain} = {
forceSSL = true;
useACMEHost = config.nix-leonhard.domain;
locations."/.well-known/".root = config.security.acme.defaults.webroot;
virtualHosts.${config.nix-leonhard.domain} = {
forceSSL = true;
useACMEHost = config.nix-leonhard.domain;
locations."/.well-known/".root = config.security.acme.defaults.webroot;
};
};
};
}