diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 8a69df1..2627530 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -30,7 +30,7 @@ }; services = { - gc.enable = true; + auto-gc.enable = true; sound.enable = true; nebula.enable = true; sshd.enable = true; diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 8f4acea..9f50aa0 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -31,7 +31,7 @@ services = { resolved.enable = true; - gc.enable = true; + auto-gc.enable = true; wlan.enable = true; bluetooth.enable = true; sound.enable = true; diff --git a/hosts/vps-monitor/default.nix b/hosts/vps-monitor/default.nix index 100c50b..16993b3 100644 --- a/hosts/vps-monitor/default.nix +++ b/hosts/vps-monitor/default.nix @@ -27,7 +27,7 @@ }; services = { - gc = { + auto-gc = { enable = true; onlyCleanRoots = true; }; diff --git a/hosts/vps-private/default.nix b/hosts/vps-private/default.nix index 134b29e..d4ef331 100644 --- a/hosts/vps-private/default.nix +++ b/hosts/vps-private/default.nix @@ -31,7 +31,7 @@ }; services = { - gc = { + auto-gc = { enable = true; onlyCleanRoots = true; }; diff --git a/hosts/vps-public/default.nix b/hosts/vps-public/default.nix index 2729404..b8e1a2c 100644 --- a/hosts/vps-public/default.nix +++ b/hosts/vps-public/default.nix @@ -30,7 +30,7 @@ }; services = { - gc = { + auto-gc = { enable = true; onlyCleanRoots = true; }; diff --git a/modules/system/services/gc.nix b/modules/system/services/auto-gc.nix similarity index 85% rename from modules/system/services/gc.nix rename to modules/system/services/auto-gc.nix index e162053..c6719b6 100644 --- a/modules/system/services/gc.nix +++ b/modules/system/services/auto-gc.nix @@ -1,9 +1,9 @@ { config, lib, ... }: let - cfg = config.custom.services.gc; + cfg = config.custom.services.auto-gc; in { - options.custom.services.gc = { + options.custom.services.auto-gc = { enable = lib.mkEnableOption ""; onlyCleanRoots = lib.mkEnableOption ""; };