NixOS

From Wiki :-)
Revision as of 05:49, 6 December 2017 by Savoundg (talk | contribs)
Jump to navigation Jump to search
Build the configuration Make the default boot Switch the running system to it Comments
nixos-rebuild switch Yes Yes Yes
nixos-rebuild test Yes No Yes
nixos-rebuild boot Yes Yes No (next reboot)
nixos-rebuild switch -p test Yes ? ? Show up in a different Grub sub-menu
nixos-rebuild build Yes No No
nixos-rebuild build-vm Yes No No Generate a Qemu image
Command Comment
nixos-rebuild switch --upgrade Update nix-channel --update nixos; nixos-rebuild-switch
nix-channel --list
nix-channel --add <URL> <NAME>
nix-channel --remove <NAME>
nix-channel --update <NAME>
nix-env -qa view the set of available packages in Nixpkgs
nix-env -qaf <patch/to/nixpkg>