{ 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 = { enable = true; enableCompletion = false; # Causes >2s startup time, overlaps home-manager config enableBashCompletion = true; loginShellInit = builtins.readFile "/System/Library/Templates/Data/private/etc/zprofile"; interactiveShellInit = '' if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then setopt COMBINING_CHARS fi # Useful support for interacting with Terminal.app or other terminal programs [[ -r "/etc/zshrc_$TERM_PROGRAM" ]] && . "/etc/zshrc_$TERM_PROGRAM" ''; }; environment.systemPackages = with pkgs; [ watch coreutils-prefixed ]; }