drone: enable btrfs auto scrub
This commit is contained in:
parent
9cbf114752
commit
64e486da59
1 changed files with 10 additions and 5 deletions
|
|
@ -22,6 +22,16 @@
|
||||||
"/swap".options = [ "noatime" ];
|
"/swap".options = [ "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.btrfs.autoScrub = {
|
||||||
|
enable = true;
|
||||||
|
fileSystems = [ "/" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/swap/swapfile";
|
||||||
|
size = 8192;
|
||||||
|
}];
|
||||||
|
|
||||||
# config for ZFS external storage
|
# config for ZFS external storage
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
networking.hostId = "58bae81c";
|
networking.hostId = "58bae81c";
|
||||||
|
|
@ -52,11 +62,6 @@
|
||||||
|
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
||||||
swapDevices = [{
|
|
||||||
device = "/swap/swapfile";
|
|
||||||
size = 8192;
|
|
||||||
}];
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "${hostName}";
|
hostName = "${hostName}";
|
||||||
firewall = lib.mkForce {
|
firewall = lib.mkForce {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue