Update to Nix 2.4
This commit is contained in:
parent
ff13888684
commit
f7a10421a5
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.machine;
|
cfg = config.machine;
|
||||||
|
@ -8,8 +8,11 @@ in {
|
||||||
buildCores = 1;
|
buildCores = 1;
|
||||||
autoOptimiseStore = true;
|
autoOptimiseStore = true;
|
||||||
useSandbox = true;
|
useSandbox = true;
|
||||||
|
package = pkgs.nix_2_4;
|
||||||
|
allowedUsers = [ "root" ] ++ (map (n: n.name) cfg.administrators);
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
build-timeout = 86400 # 24 hours
|
build-timeout = 86400 # 24 hours
|
||||||
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
binaryCachePublicKeys = [ (lib.fileContents "${cfg.secretPath}/hydra_cache.pub") ];
|
binaryCachePublicKeys = [ (lib.fileContents "${cfg.secretPath}/hydra_cache.pub") ];
|
||||||
trustedBinaryCaches = [
|
trustedBinaryCaches = [
|
||||||
|
|
Loading…
Reference in a new issue