refactor: move builders-user-substitutes to be near the other nix extraOptions
This commit is contained in:
parent
c3c3cff6ca
commit
dd0ab41396
|
@ -34,11 +34,13 @@
|
|||
|
||||
nix.extraOptions = ''
|
||||
# see: `man nix.conf`
|
||||
# allow `nix flake ...` command
|
||||
experimental-features = nix-command flakes
|
||||
# useful when a remote builder has a faster internet connection than me
|
||||
builders-use-substitutes = true # default: false
|
||||
# maximum seconds to wait when connecting to binary substituter
|
||||
connect-timeout = 3 # default: 0
|
||||
# download-attempts = 5 # default: 5
|
||||
# allow `nix flake ...` command
|
||||
experimental-features = nix-command flakes
|
||||
# whether to build from source when binary substitution fails
|
||||
fallback = true # default: false
|
||||
# whether to keep building dependencies if any other one fails
|
||||
|
|
|
@ -108,11 +108,5 @@ in
|
|||
})
|
||||
];
|
||||
nix.distributedBuilds = lib.mkIf (cfg.remote-builders.desko || cfg.remote-builders.servo) true;
|
||||
|
||||
# optional, useful when the builder has a faster internet connection than yours
|
||||
# TODO: move this to hosts/common/default.nix where the other extraOptions are
|
||||
nix.extraOptions = lib.mkIf (cfg.remote-builders.desko || cfg.remote-builders.servo) ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user