diff --git a/hosts/colmena/default.nix b/hosts/colmena/default.nix index 3e4721d..210c2bf 100644 --- a/hosts/colmena/default.nix +++ b/hosts/colmena/default.nix @@ -9,6 +9,7 @@ my = { utils = { commons.enable = true; + commons.gc.enable = false; lxc-standard.enable = true; }; @@ -30,10 +31,11 @@ ''; }; - # For VSCode Remote Development programs = { + # For VSCode Remote Development nix-ld.enable = true; + starship = { enable = true; presets = [ diff --git a/modules/utils/commons.nix b/modules/utils/commons.nix index 4463fe1..94bc7d5 100644 --- a/modules/utils/commons.nix +++ b/modules/utils/commons.nix @@ -17,6 +17,15 @@ in }; }; + + gc = { + + enable = lib.mkOption { + default = false; + type = lib.types.bool; + description = "Enable garbage collection"; + }; + }; }; config = lib.mkIf cfg.enable { @@ -37,7 +46,7 @@ in "flakes" ]; - gc = { + gc = lib.mkIf cfg.gc.enable { # Auto delete old generations automatic = true; options = "--delete-older-than 2d";