NixOS: Difference between revisions

From Wiki :-)
Jump to navigation Jump to search
No edit summary
No edit summary
Line 41: Line 41:
|No
|No
|Generate a Qemu image
|Generate a Qemu image
|-
|
|
|
|
|
|}
{| class="wikitable"
!Command
!
!Comment
!
|-
|nixos-rebuild switch --upgrade
|Update
|nix-channel --update nixos; nixos-rebuild-switch
|
|-
|
|
|
|
|-
|
|
|
|
|}
{| class="wikitable"
!
!
!
!
|-
|nix-channel --list
|
|
|
|-
|nix-channel --add <URL> <NAME>
|
|
|
|-
|nix-channel --remove <NAME>
|
|
|
|-
|nix-channel --update <NAME>
|
|
|
|}
{| class="wikitable"
!
!
!
!
|-
|nix-env -qa
|view the set of available packages in Nixpkgs
|
|
|-
|nix-env -qaf <patch/to/nixpkg>
|
|
|
|-
|
|
|
|
|}
|}

Revision as of 05:49, 6 December 2017

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>