aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/nix/nix.conf
blob: 633422bcbcf67c44a974b7d65c8abb5de8817159 (plain) (blame)
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
#
# https://nixos.org/manual/nix/stable/#sec-conf-file
#

# Unix group containing the Nix build user accounts
build-users-group = nixbld

# 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