Update to Nix 2.4

This commit is contained in:
Kevin Baensch 2021-11-02 09:44:06 +01:00
parent ff13888684
commit f7a10421a5
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -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 = [