diff --git a/configs/nixos/ni/hardware-configuration.nix b/configs/nixos/ni/hardware-configuration.nix index de5cbc21..4bfe47e7 100644 --- a/configs/nixos/ni/hardware-configuration.nix +++ b/configs/nixos/ni/hardware-configuration.nix @@ -23,11 +23,4 @@ powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - - services.btrfs.autoScrub = { - enable = true; - fileSystems = [ - "/mnt/archives" - ]; - }; } diff --git a/configs/nixos/ni/modules/services/backup/default.nix b/configs/nixos/ni/modules/services/backup/default.nix index 8de37dce..e9ff7369 100644 --- a/configs/nixos/ni/modules/services/backup/default.nix +++ b/configs/nixos/ni/modules/services/backup/default.nix @@ -112,5 +112,12 @@ in Host ${hetzner-boxes-server} IdentityFile ${config.sops.secrets."${pathPrefix}/ssh-key".path} ''; + + services.btrfs.autoScrub = { + enable = true; + fileSystems = [ + "/mnt/archives" + ]; + }; }; }