Move common nix-darwin config to darwin.nix
1 file changed, 15 insertions(+), 1 deletion(-)
changed files
M system/settings/darwin.nix → system/settings/darwin.nix
@@ -1,9 +1,23 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { services.nix-daemon = { enable = true; enableSocketListener = true; + }; + nix = { + buildCores = lib.mkDefault 0; + daemonIONice = true; + daemonNiceLevel = 10; + gc = { + automatic = true; + user = "alan"; + options = "--max-freed $((25 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))"; + }; + }; + + nixpkgs.config = { + allowUnfree = true; }; programs.zsh = {