From f3106ee3162ecbd992fa0128c44877ffebfda599 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 13 May 2024 22:57:40 +0000 Subject: [PATCH] programs: maxBuildCost: fix to actually build everything by default --- hosts/common/nix/default.nix | 4 ++-- modules/programs/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/common/nix/default.nix b/hosts/common/nix/default.nix index 2eae7ff7..7f391386 100644 --- a/hosts/common/nix/default.nix +++ b/hosts/common/nix/default.nix @@ -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; }; diff --git a/modules/programs/default.nix b/modules/programs/default.nix index 59de9356..09c5a590 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -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.