NixOS: Console Commands
Enter config file from console:
- sudo nano /etc/nixos/configuration.nix
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:
- sudo nixos-rebuild switch
Load config file AND check for new updates:
- sudo nixos-rebuild switch --upgrade
To remove old builds:
- sudo nix-collect-garbage -d
To remove old builds (if garbage collect doesn't remove them):
- sudo nixos-rebuild boot