base: enable autoScrub for all btrfs machine by default

This commit is contained in:
h7x4
2026-06-05 13:21:22 +09:00
parent 8a290d30e7
commit 88892115b5
3 changed files with 3 additions and 4 deletions
+3
View File
@@ -1,4 +1,5 @@
{
config,
pkgs,
lib,
inputs,
@@ -56,6 +57,8 @@
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
services.btrfs.autoScrub.enable = lib.mkDefault (lib.any ({ fsType, ... }: fsType == "btrfs") (lib.attrValues config.fileSystems));
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
-2
View File
@@ -25,8 +25,6 @@
address = with values.hosts.bekkalokk; [ (ipv4 + "/25") (ipv6 + "/64") ];
};
services.btrfs.autoScrub.enable = true;
# Don't change (even during upgrades) unless you know what you are doing.
# See https://search.nixos.org/options?show=system.stateVersion
system.stateVersion = "25.11";
-2
View File
@@ -15,8 +15,6 @@
address = with values.hosts.kommode; [ (ipv4 + "/25") (ipv6 + "/64") ];
};
services.btrfs.autoScrub.enable = true;
services.qemuGuest.enable = true;
# Don't change (even during upgrades) unless you know what you are doing.