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

@ -12,7 +12,10 @@ in
];
luj = {
filerun.enable = true;
filerun = {
enable = true;
subdomain = "cloud";
};
zfs-mails.enable = true;
};

View file

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

View file

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

View file

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

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