mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
Fixed my knowledge about attribute set merging
This commit is contained in:
parent
be4fce11f4
commit
698ddcc02a
5 changed files with 12 additions and 9 deletions
|
@ -12,7 +12,10 @@ in
|
|||
];
|
||||
|
||||
luj = {
|
||||
filerun.enable = true;
|
||||
filerun = {
|
||||
enable = true;
|
||||
subdomain = "cloud";
|
||||
};
|
||||
zfs-mails.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with lib;
|
|||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
config = mkIf cfg.enable (recursiveUpdate
|
||||
{
|
||||
users.users.nix-serve = {
|
||||
isSystemUser = true;
|
||||
|
@ -32,5 +32,5 @@ with lib;
|
|||
port = port;
|
||||
};
|
||||
|
||||
} // mkSubdomain cfg.subdomain port;
|
||||
} (mkSubdomain cfg.subdomain port));
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf cfg.enable (recursiveUpdate {
|
||||
|
||||
users.users.drone = {
|
||||
isNormalUser = true;
|
||||
|
@ -93,5 +93,5 @@ in
|
|||
path = [ pkgs.nixUnstable pkgs.git pkgs.openssh ];
|
||||
};
|
||||
|
||||
} // mkSubdomain cfg.subdomain port;
|
||||
} (mkSubdomain cfg.subdomain port));
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ in
|
|||
};
|
||||
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf cfg.enable (recursiveUpdate {
|
||||
|
||||
|
||||
sops.secrets.filerun = {};
|
||||
|
@ -83,6 +83,6 @@ in
|
|||
extraOptions = [ "--network=filerun-br" ];
|
||||
};
|
||||
|
||||
} // mkSubdomain cfg.subdomain port;
|
||||
} (mkSubdomain cfg.subdomain port));
|
||||
|
||||
}
|
||||
|
|
|
@ -28,9 +28,9 @@ in
|
|||
networking.firewall = { allowedTCPPorts = [ port ]; };
|
||||
}
|
||||
|
||||
(mkIf cfg.nginx.enable {
|
||||
(mkIf cfg.nginx.enable (recursiveUpdate {
|
||||
services.hydra.hydraURL = "${cfg.nginx.subdomain}.julienmalka.me";
|
||||
} // mkSubdomain cfg.nginx.subdomain port )]);
|
||||
} (mkSubdomain cfg.nginx.subdomain port)) )]);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue