From a2cab956474c0763e9845a624fb8ca8a42985449 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 11 Apr 2025 10:50:24 +0200 Subject: [PATCH] Use inherit when applicable --- hosts/alto/default.nix | 8 ++++---- modules/system/hedgedoc/default.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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;