Set up automatic garbage collection

This commit is contained in:
Elnu 2022-10-08 14:57:25 -07:00
parent 395f8fde70
commit 9c74115b76
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,6 @@
- Make rofi power menu work by removing password requirement from shutdown, reboot, etc., which is normally done with `visudo` (see [this Stack Overflow thread](https://askubuntu.com/a/168885) and [Nix `sudo` option](https://search.nixos.org/options?channel=22.05&from=0&size=50&sort=relevance&type=packages&query=sudo).
- Package safe poweroff bash script required by rofi power menu
- Limit number of stored rollbacks to remove need for manual garbage collection
- Theme lightdm
- Theme GRUB
- Find out how handling multiple hosts works so both desktop and ThinkPad configurations are buildable from flake

View file

@ -14,6 +14,12 @@ in
#<home-manager/nixos>
];
# Automatically delete generations older than a week
nix.gc = {
automatic = true;
options = "--delete-generations 8d";
};
# Use the GRUB 2 boot loader.
boot.loader = {
efi = {