You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

667 B

from time to time run the following commands to remove stuff from old generations

# list old generations
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system

# remove old generations
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations 9 10 11 12 13 X...

# remove old generations except the last 5 generations
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations +5


# to remove old programs
nix-collect-garbage --delete-old

When 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.