NixOS: Console Commands

Enter config file from console:


Hint: When you're done editing: Ctrl + X. Then Y to save. The ENTER to save to the existing file (don't change the file name).


Load config file:


Load config file AND check for new updates:


To remove old builds:

  1. sudo nix-collect-garbage -d

To remove old builds (if garbage collect doesn't remove them):

  1. sudo nixos-rebuild boot

back to home