add zfs storage
This commit is contained in:
parent
2fca799117
commit
0cfc3a6101
1 changed files with 17 additions and 0 deletions
|
|
@ -22,6 +22,23 @@
|
|||
"/swap".options = [ "noatime" ];
|
||||
};
|
||||
|
||||
# config for ZFS external storage
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
networking.hostId = "58bae81c";
|
||||
fileSystems = {
|
||||
"/mnt/external" = {
|
||||
device = "zpool-mirror";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
"/mnt/external/backup" = {
|
||||
device = "zpool-mirror/backup";
|
||||
fsType = "zfs";
|
||||
};
|
||||
};
|
||||
|
||||
services.zfs.autoScrub.enable = true;
|
||||
|
||||
swapDevices = [{
|
||||
device = "/swap/swapfile";
|
||||
size = 8192;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue