aboutsummaryrefslogtreecommitdiff
path: root/nixos/hosts/tente
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-25 20:59:34 +0100
committerMartin Fischer <martin@push-f.com>2025-12-26 08:03:25 +0100
commitfbc48c342145b566e24990e5250951cfd6f76b3b (patch)
tree93e757b416cc7492b31b8994217be58d71226125 /nixos/hosts/tente
parenta36b384657a11acdb267bfefa9bc7719ab6ab4a0 (diff)
refactor: define dirs in main modules
Diffstat (limited to 'nixos/hosts/tente')
-rw-r--r--nixos/hosts/tente/default.nix1
-rw-r--r--nixos/hosts/tente/web-personal.nix5
2 files changed, 5 insertions, 1 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix
index 54880dd..277bc58 100644
--- a/nixos/hosts/tente/default.nix
+++ b/nixos/hosts/tente/default.nix
@@ -136,6 +136,7 @@ in
web-personal = {
domain = baseDomain;
+ dir = "/srv/www/${baseDomain}"; # not managed via Nix
matrixApiDomain = config.matrix.apiDomain;
};
diff --git a/nixos/hosts/tente/web-personal.nix b/nixos/hosts/tente/web-personal.nix
index d706b9d..093525f 100644
--- a/nixos/hosts/tente/web-personal.nix
+++ b/nixos/hosts/tente/web-personal.nix
@@ -9,6 +9,9 @@ in
domain = lib.mkOption {
type = lib.types.str;
};
+ dir = lib.mkOption {
+ type = lib.types.str;
+ };
matrixApiDomain = lib.mkOption {
type = lib.types.str;
};
@@ -27,7 +30,7 @@ in
{
enableACME = true;
forceSSL = true;
- root = "/srv/www/${cfg.domain}";
+ root = cfg.dir;
extraConfig = helpers.mkNginxConfig cfg.domain;
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown {