A powerful package manager that makes package management reliable, reproducible, and declarative.
nix
is experimental and requires enabling experimental features. For a classic, stable interface, seetldr nix classic
. Somenix
subcommands such asbuild
,develop
,flake
,registry
,profile
,search
,repl
,store
,edit
,why-depends
etc. have their own usage documentation, accessible viatldr nix3 subcommand
. More information: https://nixos.org/manual/nix.
nix
command:mkdir -p ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
nix
subcommand:nix help {{subcommand}}
nix search nixpkgs {{search_term}}
nix shell {{nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...}}
nix profile install {{nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...}}
nix store gc
nix repl