aboutsummaryrefslogtreecommitdiff
path: root/cluster/staging/node
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/staging/node')
-rw-r--r--cluster/staging/node/cariacou.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/cluster/staging/node/cariacou.nix b/cluster/staging/node/cariacou.nix
index 5662422..04e581d 100644
--- a/cluster/staging/node/cariacou.nix
+++ b/cluster/staging/node/cariacou.nix
@@ -24,14 +24,12 @@
# experimental: nomad as root, to enable exec driver
services.nomad.dropPrivileges = false;
- services.nomad.settings.client.host_volume = {
- "nix-store" = {
- path = "/nix";
- read_only = true;
- };
- "nix-current-system-bin" = {
- path = "/run/current-system/sw/bin";
- read_only = true;
- };
- };
+ services.nomad.extraPackages = [
+ pkgs.nix
+ ];
+ services.nomad.extraSettingsPlugins =
+ let nomad_driver_nix = import ./nomad-driver-nix.nix { inherit pkgs; };
+ in [ nomad_driver_nix ];
+ # the nix driver requires flakes to be enabled
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
}