programs: maxBuildCost: fix to actually build everything by default
This commit is contained in:
parent
bef0099eec
commit
f3106ee316
|
@ -65,10 +65,10 @@
|
|||
|
||||
# ensure new deployments have a source of this repo with which they can bootstrap.
|
||||
# this however changes on every commit and can be slow to copy for e.g. `moby`.
|
||||
environment.etc."nixos" = lib.mkIf (config.sane.maxBuildCost >= 2) {
|
||||
environment.etc."nixos" = lib.mkIf (config.sane.maxBuildCost >= 3) {
|
||||
source = ../../..;
|
||||
};
|
||||
environment.etc."nix/registry.json" = lib.mkIf (config.sane.maxBuildCost < 2) {
|
||||
environment.etc."nix/registry.json" = lib.mkIf (config.sane.maxBuildCost < 3) {
|
||||
enable = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -635,8 +635,8 @@ in
|
|||
default = {};
|
||||
};
|
||||
sane.maxBuildCost = mkOption {
|
||||
type = types.enum [ 0 1 2 ];
|
||||
default = 2;
|
||||
type = types.enum [ 0 1 2 3 ];
|
||||
default = 3;
|
||||
description = ''
|
||||
max build cost of programs to ship.
|
||||
set to 0 to get the fastest, but most restrictive build.
|
||||
|
|
Loading…
Reference in New Issue
Block a user