hosts/ni/services/backup: add btrfs autoscrub

This commit is contained in:
Gabriel Arazas 2024-01-25 12:19:29 +08:00
parent 6737cd1d16
commit e11c054e54
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 7 additions and 7 deletions

View File

@ -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"
];
};
}

View File

@ -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"
];
};
};
}