Fixed my knowledge about attribute set merging

This commit is contained in:
Julien Malka 2021-12-29 18:20:42 +01:00
parent be4fce11f4
commit 698ddcc02a
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
5 changed files with 12 additions and 9 deletions

View file

@ -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)) )]);