Nix configuration

From wikinotes
Revision as of 13:42, 15 August 2020 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.conf

# 
build-users-group = nixbld

#
keep-derivations = true

# 
keep-outputs = true