programs: maxBuildCost: fix to actually build everything by default

This commit is contained in:
2024-05-13 22:57:40 +00:00
parent bef0099eec
commit f3106ee316
2 changed files with 4 additions and 4 deletions

View File

@@ -65,10 +65,10 @@
# ensure new deployments have a source of this repo with which they can bootstrap. # 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`. # 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 = ../../..; 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; enable = false;
}; };

View File

@@ -635,8 +635,8 @@ in
default = {}; default = {};
}; };
sane.maxBuildCost = mkOption { sane.maxBuildCost = mkOption {
type = types.enum [ 0 1 2 ]; type = types.enum [ 0 1 2 3 ];
default = 2; default = 3;
description = '' description = ''
max build cost of programs to ship. max build cost of programs to ship.
set to 0 to get the fastest, but most restrictive build. set to 0 to get the fastest, but most restrictive build.