refactor: Modularise Nginx vhosts

This commit is contained in:
Madeleine Sydney committed 2025-01-20 03:37:22 -07:00
1 parent 46d6c129c1
commit f4924eeb59
11 files changed
+213 -171

No files matched your search

+19 -1
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 = {