diff --git a/config/nix.nix b/config/nix.nix index 058747e..15c0590 100644 --- a/config/nix.nix +++ b/config/nix.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ pkgs, config, lib, ... }: let cfg = config.machine; @@ -8,8 +8,11 @@ in { buildCores = 1; autoOptimiseStore = true; useSandbox = true; + package = pkgs.nix_2_4; + allowedUsers = [ "root" ] ++ (map (n: n.name) cfg.administrators); extraOptions = '' build-timeout = 86400 # 24 hours + experimental-features = nix-command flakes ''; binaryCachePublicKeys = [ (lib.fileContents "${cfg.secretPath}/hydra_cache.pub") ]; trustedBinaryCaches = [