add+cleanup config

This commit is contained in:
Alex 2022-11-16 16:52:38 +01:00
parent 49b0dc2d5b
commit 78440a03d2
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -22,14 +22,21 @@
deuxfleurs.cluster_ip = "10.14.1.1";
deuxfleurs.is_raft_server = true;
# experimental: nomad as root, to enable exec driver
# ----
# experimental: config for nomad nix driver
services.nomad.dropPrivileges = false;
services.nomad.extraPackages = [
pkgs.nix
pkgs.git
];
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" ];
# use our cache as additionnal substituer
nix.settings.substituers = [ "https://nix.web.deuxfleurs.fr" ];
nix.settings.trusted-public-keys = [ "nix.web.deuxfleurs.fr:eTGL6kvaQn6cDR/F9lDYUIP9nCVR/kkshYfLDJf1yKs=" ];
}