consolidate config file
This commit is contained in:
+33
-37
@@ -46,12 +46,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
CP = config.sops.secrets."clusterPassword".path;
|
||||
CAE = config.sops.secrets."cloudflare-api-email".path;
|
||||
CAK = config.sops.secrets."cloudflare-api-key".path;
|
||||
};
|
||||
|
||||
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
|
||||
@@ -68,24 +62,26 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.enable = true;
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
services.nginx.virtualHosts."roypository.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
};
|
||||
virtualHosts."roypository.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
};
|
||||
|
||||
|
||||
services.nginx.virtualHosts."test.roypository.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
root = "${testSiteIndex}";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
index index.html;
|
||||
'';
|
||||
virtualHosts."test.roypository.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
root = "${testSiteIndex}";
|
||||
locations."/" = {
|
||||
extraConfig =
|
||||
''
|
||||
index index.html;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -105,23 +101,23 @@ in
|
||||
zfs rollback -r zroot/root@blank
|
||||
'';
|
||||
|
||||
networking.hostName = meta.hostname;
|
||||
networking.hostId = meta.hostId;
|
||||
networking = {
|
||||
hostName = meta.hostname;
|
||||
hostId = meta.hostId;
|
||||
defaultGateway = "192.168.1.1";
|
||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||
|
||||
networking.interfaces.eth0.ipv4.addresses = [
|
||||
{
|
||||
address = config.ipAddrs.${meta.hostname};
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443];
|
||||
};
|
||||
|
||||
networking.defaultGateway = "192.168.1.1";
|
||||
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 ];
|
||||
interfaces.eth0.ipv4.addresses = [
|
||||
{
|
||||
adress = config.ipAddrs.${meta.hostname};
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
|
||||
Reference in New Issue
Block a user