Nix configuration

From wikinotes

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