hestia: init

This commit is contained in:
Infinidoge 2024-11-23 09:42:19 -05:00
parent 7a5300b6a2
commit a30f8b19a6
No known key found for this signature in database
4 changed files with 77 additions and 0 deletions

46
hosts/hestia/disks.nix Normal file
View file

@ -0,0 +1,46 @@
{ pkgs, lib, ... }:
with lib.our.disko;
{
boot.kernelPackages = pkgs.linuxPackages;
boot.zfs.extraPools = [ "tank" ];
disko.devices = {
nodev."/" = mkTmpfs "2G";
disk = {
hdd1 = mkDisk "wwn-0x5000c50015bda593" {
partitions = {
boot = mkESP "64M" "/boot/efi";
store = mkBtrfsPartEndAt "238400M" "/media/store" {
# 1/4th of 1000GB/931.5GiB
subvolumes = mkBtrfsSubvols {
"/boot" = { };
"/etc/ssh" = { };
"/persist" = { };
"/nix" = { };
};
};
zfs = mkZPart "100%" "tank";
};
};
hdd2 = mkZDisk "wwn-0x5000cca215d2481a" "tank";
hdd3 = mkZDisk "wwn-0x5000cca215d24629" "tank";
};
zpool = mkZPools {
tank = {
datasets = {
storage = mkZfs "/storage" { };
backups = mkZfs "/backups" { };
};
};
};
};
fileSystems = markNeededForBoot [
"/persist"
"/storage"
"/etc/ssh"
"/home"
];
}