mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Use inherit when applicable
This commit is contained in:
parent
d3a98a31cf
commit
a2cab95647
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue