put btrfs scrub into options and enable it on me server

This commit is contained in:
jacekpoz 2024-04-06 19:59:23 +02:00
parent dcd61b6eba
commit cd6faba183
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
6 changed files with 11 additions and 14 deletions

View file

@ -1,5 +1,6 @@
_: { _: {
imports = [ imports = [
../../options/common/btrfs-scrub.nix
../../options/common/xz.nix ../../options/common/xz.nix
]; ];
} }

View file

@ -94,13 +94,6 @@
}; };
}; };
services.btrfs = {
autoScrub = {
enable = true;
interval = "weekly";
};
};
services.journald = { services.journald = {
extraConfig = '' extraConfig = ''
SystemMaxUse=100M SystemMaxUse=100M

View file

@ -1,6 +1,7 @@
_: { _: {
imports = [ imports = [
../../options/boot/systemd-boot.nix ../../options/boot/systemd-boot.nix
../../options/common/btrfs-scrub.nix
../../options/common/docs.nix ../../options/common/docs.nix
../../options/common/networking.nix ../../options/common/networking.nix
../../options/common/nix.nix ../../options/common/nix.nix

View file

@ -65,13 +65,6 @@
ratbagd.enable = true; ratbagd.enable = true;
}; };
services.btrfs = {
autoScrub = {
enable = true;
interval = "weekly";
};
};
services.journald = { services.journald = {
extraConfig = '' extraConfig = ''
SystemMaxUse=100M SystemMaxUse=100M

View file

@ -1,6 +1,7 @@
_: { _: {
imports = [ imports = [
../../options/boot/systemd-boot.nix ../../options/boot/systemd-boot.nix
../../options/common/btrfs-scrub.nix
../../options/common/cpu/amd.nix ../../options/common/cpu/amd.nix
../../options/common/docs.nix ../../options/common/docs.nix
../../options/common/gpu/amd.nix ../../options/common/gpu/amd.nix

View file

@ -0,0 +1,8 @@
_: {
services.btrfs = {
autoScrub = {
enable = true;
interval = "weekly";
};
};
}