Add documentation about grub and cleanup

This commit is contained in:
Ethan Lane 2024-09-08 11:36:54 +01:00
parent 0cbe3869f1
commit 89ba56f3e9
2 changed files with 26 additions and 0 deletions

14
docs/Cleanup.md Normal file
View file

@ -0,0 +1,14 @@
# Cleanup
This document refers to information about cleaning the system, such as deleting
old generations, unused nix shells, etc.
## Delete Old Generations
Run the following commands to clean the system up and delete old generations:
```bash
nix-collect-garbage --delete-old
sudo nox-collect-garbage -d
sudo /run/current-system/bin/switch-to-configuration boot
```

12
docs/Grub.md Normal file
View file

@ -0,0 +1,12 @@
# Grub
This document is for information regarding Grub.
## Reinstall Grub
If the grub install breaks and you ever need to reinstall grub, the following
command is how you do it:
```bash
sudo NIXOS_INSTALL_BOOTLOADER=1 /nix/var/nix/profiles/system/bin/switch-to-configuration boot
```