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" ];
|
||||
};
|
||||
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
fileSystems = [ "/" ];
|
||||
};
|
||||
|
||||
swapDevices = [{
|
||||
device = "/swap/swapfile";
|
||||
size = 8192;
|
||||
}];
|
||||
|
||||
# config for ZFS external storage
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
networking.hostId = "58bae81c";
|
||||
|
|
@ -52,11 +62,6 @@
|
|||
|
||||
services.zfs.autoScrub.enable = true;
|
||||
|
||||
swapDevices = [{
|
||||
device = "/swap/swapfile";
|
||||
size = 8192;
|
||||
}];
|
||||
|
||||
networking = {
|
||||
hostName = "${hostName}";
|
||||
firewall = lib.mkForce {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue