aboutsummaryrefslogtreecommitdiff
path: root/nixos/machine/spt-mox.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-02-19 13:58:00 +0100
committerKarel Kočí <cynerd@email.cz>2024-02-19 13:58:00 +0100
commit3f20c20af788e8a8e23ebdd602c4242730d3eb4e (patch)
tree2163d7008798a572e6195a83bc7120f9c9f3158d /nixos/machine/spt-mox.nix
parent9e7eca47bb3ddb6e88720cfcb28c995acbb072c1 (diff)
downloadnixos-personal-3f20c20af788e8a8e23ebdd602c4242730d3eb4e.tar.gz
nixos-personal-3f20c20af788e8a8e23ebdd602c4242730d3eb4e.tar.bz2
nixos-personal-3f20c20af788e8a8e23ebdd602c4242730d3eb4e.zip
nixos: enable autoScrub for BTRFS
Diffstat (limited to 'nixos/machine/spt-mox.nix')
-rw-r--r--nixos/machine/spt-mox.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/machine/spt-mox.nix b/nixos/machine/spt-mox.nix
index 452b187..b223e86 100644
--- a/nixos/machine/spt-mox.nix
+++ b/nixos/machine/spt-mox.nix
@@ -24,6 +24,11 @@ with lib; {
};
};
+ services.btrfs.autoScrub = {
+ enable = true;
+ fileSystems = ["/"];
+ };
+
networking = {
useNetworkd = true;
useDHCP = false;