initial setup
This commit is contained in:
30
root/filesystem/server/default.nix
Normal file
30
root/filesystem/server/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
# Filesystem settings for homeserver. Singledisk root with ext4 and external disks. External disks with ZFS.
|
||||
{ ... }:
|
||||
{
|
||||
# ZFS NEEDS hostID
|
||||
networking.hostId = "efc6dacc";
|
||||
boot.zfs.devNodes = "/dev/disk/by-id";
|
||||
boot.zfs.extraPools = [ "ssd" "hdd" ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-partlabel/root";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/docker" =
|
||||
{ device = "ssd/docker";
|
||||
fsType = "zfs";
|
||||
options = [ "zfsutil" ];
|
||||
};
|
||||
|
||||
fileSystems."/data" =
|
||||
{ device = "hdd/data";
|
||||
fsType = "zfs";
|
||||
options = [ "zfsutil" ];
|
||||
};
|
||||
|
||||
swapDevices = [ {
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16*1024;
|
||||
}];
|
||||
}
|
Reference in New Issue
Block a user