diff options
Diffstat (limited to 'etc/nix')
| -rw-r--r-- | etc/nix/nix.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/nix/nix.conf b/etc/nix/nix.conf new file mode 100644 index 0000000..eb24511 --- /dev/null +++ b/etc/nix/nix.conf @@ -0,0 +1,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 |
