diff --git a/hosts/alto/default.nix b/hosts/alto/default.nix index b0e223d..a6e9b01 100644 --- a/hosts/alto/default.nix +++ b/hosts/alto/default.nix @@ -1,7 +1,7 @@ { config, ... }: let - myCfg = config.myConfig; - caddyServe = myCfg.tailscale.caddyServe; + inherit (config) myConfig; + inherit (myConfig.tailscale) caddyServe; in { system.stateVersion = "24.11"; @@ -17,11 +17,11 @@ in caddyServe = { nextcloud = { subdomain = "cloud"; - inherit (myCfg.nextcloud) port; + inherit (myConfig.nextcloud) port; }; hedgedoc = { subdomain = "docs"; - inherit (myCfg.hedgedoc) port; + inherit (myConfig.hedgedoc) port; }; }; }; diff --git a/modules/system/hedgedoc/default.nix b/modules/system/hedgedoc/default.nix index 6b53f6c..34efd01 100644 --- a/modules/system/hedgedoc/default.nix +++ b/modules/system/hedgedoc/default.nix @@ -31,7 +31,7 @@ in settings = { domain = "${cfg.subdomain}.${config.networking.domain}"; - port = cfg.port; + inherit (cfg) port; protocolUseSSL = true; allowAnonymous = false;