initial upload

This commit is contained in:
2026-02-12 14:17:28 +01:00
commit 98acb2ac9f
112 changed files with 3311 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Filesystem for clients. Use partlabel as device to make it reusable. Singledisk setup.
{ ... }:
{
fileSystems."/" =
{ device = "/dev/disk/by-label/root";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ {
device = "/var/lib/swapfile";
size = 16*1024;
}];
}

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