Use inherit when applicable

This commit is contained in:
SebastianStork 2025-04-11 10:50:24 +02:00
parent d3a98a31cf
commit a2cab95647
2 changed files with 5 additions and 5 deletions

View file

@ -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;
};
};
};