arnaucube
arnaucube/configsPublic Self-hosted repository
configs/nixos/README.md
nixos/README.mdRaw
 1After nixos installation and config files in place, run the `../install-new-desktop.sh` script to put in place all the config files (vim,nvim,tmux,i3,etc)
 2
 3
 4From time to time run the following commands to remove stuff from old generations
 5```
 6# list old generations
 7sudo nix-env --list-generations --profile /nix/var/nix/profiles/system
 8
 9# remove old generations
10sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations 9 10 11 12 13 X...
11
12# remove old generations except the last 5 generations
13sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations +5
14
15
16# update
17`sudo nix-channel --update`
18`sudo nixos-rebuild switch`
19
20# to remove old programs
21nix-collect-garbage --delete-old
22```
23
24When stting up the config files in a system, remember to rename either the file `thinkpad-configuration.nix` or `surface-configuration.nix` files into `configuration.nix`.