diff options
author | Alan Pearce | 2024-05-17 16:08:52 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-17 16:10:01 +0200 |
commit | da04b1c6dd13af0dbada0d77ff195ab5e99eed5e (patch) | |
tree | a83bcdbf9f58127dfd330a44ac13f9d5d5dd7da9 /system/settings/darwin.nix | |
parent | 249f11ad9819d992a8fed1caa1432e9e8036b7d2 (diff) | |
download | nixfiles-da04b1c6dd13af0dbada0d77ff195ab5e99eed5e.tar.lz nixfiles-da04b1c6dd13af0dbada0d77ff195ab5e99eed5e.tar.zst nixfiles-da04b1c6dd13af0dbada0d77ff195ab5e99eed5e.zip |
system/nix: set OS-agnostic nix options in common module
Diffstat (limited to 'system/settings/darwin.nix')
-rw-r--r-- | system/settings/darwin.nix | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix index ef039a48..aa55cce5 100644 --- a/system/settings/darwin.nix +++ b/system/settings/darwin.nix @@ -4,7 +4,7 @@ , ... }: { imports = [ - ../../pin.nix + ./configuration/nix.nix ]; services.nix-daemon = { enable = true; @@ -17,19 +17,12 @@ ]; 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" ]; |