all repos — nixfiles @ da04b1c6dd13af0dbada0d77ff195ab5e99eed5e

System and user configuration, managed by nix and home-manager

system/nix: set OS-agnostic nix options in common module

Alan Pearce
commit

da04b1c6dd13af0dbada0d77ff195ab5e99eed5e

parent

249f11ad9819d992a8fed1caa1432e9e8036b7d2

1 file changed, 1 insertion(+), 8 deletions(-)

changed files
M system/settings/darwin.nixsystem/settings/darwin.nix
@@ -4,7 +4,7 @@ , lib
, ... }: { imports = [ - ../../pin.nix + ./configuration/nix.nix ]; services.nix-daemon = { enable = true;
@@ -17,19 +17,12 @@ [ "/run/current-system/sw" "/nix/var/nix/profiles/default" ]
]; nix = { - settings.cores = lib.mkDefault 0; daemonIOLowPriority = true; gc = { - automatic = true; user = "alan"; options = "--max-freed $((25 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))"; }; settings.extra-platforms = "aarch64-darwin x86_64-darwin"; - settings.experimental-features = "nix-command flakes"; - settings.warn-dirty = false; - settings.keep-outputs = true; - settings.keep-derivations = true; - settings.use-xdg-base-directories = true; linux-builder.enable = true; settings.trusted-users = [ "@admin" ];