initial setup

This commit is contained in:
2025-05-29 13:53:53 +02:00
commit 9f1f69cf9b
112 changed files with 3344 additions and 0 deletions

View 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;
}];
}