blob: 62859e7e983b4e8e874933cdf056d3b82fc809e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ config, pkgs, lib, ... }:
{
services.nix-daemon = {
enable = true;
enableSocketListener = true;
};
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 = "x86_64-darwin aarch64-darwin";
};
nixpkgs.system = "x86_64-darwin";
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
];
}
|