Nix configuration

From wikinotes
Revision as of 18:29, 19 December 2021 by Will (talk | contribs) (→‎Common Options)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

nix, nixpkgs, and nixos are each separate systems and each have their own configuration.
This page documents the nix package manager component.
You may also be interested in nixpkgs configuration.

Documentation

man nix.conf https://www.mankier.com/5/nix.conf

Locations

~/.config/nix/nix.conf user config
/etc/nix/nix.conf global config

Common Options

# /etc/nix/nix.conf

# 
build-users-group = nixbld

#
keep-derivations = true

# 
keep-outputs = true

# grant special priviliges when connecting to nix daemon (like creating binary caches)
trusted-users = root will