forked from poz/niksos
put btrfs scrub into options and enable it on me server
This commit is contained in:
parent
dcd61b6eba
commit
cd6faba183
6 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
|
../../options/common/btrfs-scrub.nix
|
||||||
../../options/common/xz.nix
|
../../options/common/xz.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,13 +94,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.btrfs = {
|
|
||||||
autoScrub = {
|
|
||||||
enable = true;
|
|
||||||
interval = "weekly";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.journald = {
|
services.journald = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
SystemMaxUse=100M
|
SystemMaxUse=100M
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
8
options/common/btrfs-scrub.nix
Normal file
8
options/common/btrfs-scrub.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
_: {
|
||||||
|
services.btrfs = {
|
||||||
|
autoScrub = {
|
||||||
|
enable = true;
|
||||||
|
interval = "weekly";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue