1
1
Fork 0

Compare commits

...

3 Commits

2 changed files with 31 additions and 33 deletions

View File

@ -6,20 +6,22 @@
};
outputs = { self, nixpkgs, nixos-wsl }: {
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ ./machine/catacomb ];
};
nixosConfigurations.empyrean = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./machine/empyrean ];
};
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-wsl.nixosModules.wsl
./machine/stagirite
];
nixosConfigurations = {
catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ ./machine/catacomb ];
};
empyrean = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./machine/empyrean ];
};
stagirite = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-wsl.nixosModules.wsl
./machine/stagirite
];
};
};
};
}

View File

@ -64,29 +64,25 @@
];
environment.variables.EDITOR = "vim";
services.nginx = {
services.nginx = let
static-site = srv-dir: {
enableACME = true;
forceSSL = true;
root = "/srv/${srv-dir}/";
extraConfig = ''
access_log /var/log/nginx/access_${srv-dir}.log;
index index.html;
'';
};
in {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
# Static pages
"www.ktvb.site" = {
enableACME = true;
forceSSL = true;
root = "/srv/wedding/";
extraConfig = ''
access_log /var/log/nginx/access.ktvb.log;
index index.html;
'';
};
"www.alogoulogoi.com" = {
enableACME = true;
forceSSL = true;
root = "/srv/www/";
extraConfig = ''
access_log /var/log/nginx/access.www.log;
index index.html;
'';
};
"wedding.ktvb.site" = static-site "wedding.ktvb.site";
"www.ktvb.site" = static-site "www.ktvb.site";
"mirror.alogoulogoi.com" = static-site "mirror.alogoulogoi.com";
"www.alogoulogoi.com" = static-site "www";
# Deny all other subdomains
"alogoulogoi.com" = {
default = true;