refactor: Modularise Nginx vhosts

This commit is contained in:
Madeleine Sydney
2025-01-19 18:52:23 -07:00
parent 46d6c129c1
commit f4924eeb59
11 changed files with 213 additions and 171 deletions

View File

@@ -3,7 +3,6 @@
imports = [
./hardware-configuration.nix
./disko-config.nix
./services.nix
];
sydnix = {
@@ -37,6 +36,25 @@
enable = true;
keyFile = "/persist/vault/root/deertopia-key";
};
deertopia = {
nginx.enable = true;
git-annex.enable = true;
# A simple default webpage. This should probably live somewhere else.
nginx.vhosts."www" = {
vhostName = "deertopia.net";
vhost = {
# addSSL = true;
forceSSL = true;
enableACME = true;
locations."/" = {
index = "index.html";
};
};
};
};
};
boot.loader = {