diff options
author | aszlig <aszlig@nix.build> | 2019-02-09 14:01:41 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2019-02-09 14:01:41 +0100 |
commit | 807edf7acd83ccc2f39954174c7a0b4a82d9ed2e (patch) | |
tree | bc6829fd99a7342e82bb4463485afb4b94f5ebc9 /machines | |
parent | 2e9a9d5639385ab18a040afc894731428f70ee1f (diff) |
machines/dnyarri: Enable btrfs auto-scrub
I had this in my local configuration.nix since a while and while it might be annoying when this runs every month, I think it's better to do it regularily rather than having a dying disk go unnoticed. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines')
-rw-r--r-- | machines/aszlig/dnyarri.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix index bb75a91b..e060aac6 100644 --- a/machines/aszlig/dnyarri.nix +++ b/machines/aszlig/dnyarri.nix @@ -80,6 +80,8 @@ in { ${pkgs.hdparm}/sbin/hdparm -B 255 /dev/disk/by-id/ata-ST31500541AS_6XW0M217 ''; + services.btrfs.autoScrub.enable = true; + swapDevices = map ({ name, ... }: { device = "/dev/mapper/${name}"; }) cryptDevices.swap; |