aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/nix/nix.conf
blob: eb245115c3d084f0df46309c96f2da72b0f147ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# /etc/nix/nix.conf — daemon-wide Nix config.
# Managed by chezmoi (etc/nix/nix.conf in dotfiles).

# Enable `nix` CLI (vs legacy nix-* commands) and flakes.
experimental-features = nix-command flakes

# Wheel users may configure extra substituters / import paths without
# the daemon prompting. Safe on a single-user laptop.
trusted-users = root @wheel

# Hard-link identical store paths to save disk after large builds.
auto-optimise-store = true

# Keep build outputs and derivations alive even when only referenced
# from GC roots like direnv envs. Without these, `nix store gc` would
# drop dev-shell deps and force a re-download next `cd` into a project.
keep-outputs = true
keep-derivations = true

# Lift the default 64 MiB download buffer; reduces stalls on big closures.
download-buffer-size = 524288000