tadpole: Automatically garbage collect generations
This commit is contained in:
@@ -1,10 +1,24 @@
|
|||||||
{ ... }:
|
{ inputs, config, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ inputs.nix-gc-env.nixosModules.default ];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
|
||||||
|
# `delete_generations` added by nix-gc-env
|
||||||
|
delete_generations = "+${builtins.toString config.boot.loader.systemd-boot.configurationLimit}";
|
||||||
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
|
|
||||||
|
configurationLimit = 10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user