Skip to content

Commit 0882360

Browse files
committed
enable local builder on prod clients
1 parent 42af336 commit 0882360

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

nix/metal/bitteProfile/default.nix

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,15 @@ in {
8080
modules =
8181
defaultModules
8282
++ lib.optional (opts ? withPatroni && opts.withPatroni == true) (patroni.nixosProfiles.client node_class)
83-
++ lib.optional (node_class == "prod") ({...}: {
84-
services.nomad.client.host_volume.host-nix-mount = {
85-
path = "/nix";
86-
read_only = false;
87-
};
88-
})
89-
++ lib.optional (node_class == "test") ./local-builder.nix;
83+
++ lib.optionals (node_class == "prod") [
84+
./local-builder.nix
85+
({...}: {
86+
services.nomad.client.host_volume.host-nix-mount = {
87+
path = "/nix";
88+
read_only = false;
89+
};
90+
})
91+
];
9092
}
9193
extraConfig;
9294
# -------------------------

0 commit comments

Comments
 (0)