nixos-config/hosts/server/default.nix

45 lines
936 B
Nix
Raw Permalink Normal View History

2024-08-22 09:46:06 +02:00
{ ... }:
{
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2024-09-05 18:34:47 +02:00
boot.zfs.enabled = true;
services.zfs.autoScrub.enable = true;
2024-08-22 09:46:06 +02:00
2024-09-05 18:34:47 +02:00
fileSystems."/" =
{ device = "zpool/root";
fsType = "zfs";
};
fileSystems."/nix" =
{ device = "zpool/nix";
fsType = "zfs";
};
fileSystems."/var" =
{ device = "zpool/var";
fsType = "zfs";
};
2024-08-22 09:46:06 +02:00
2024-09-05 18:34:47 +02:00
fileSystems."/home" =
{ device = "zpool/home";
fsType = "zfs";
};
fileSystems."/container" =
{ device = "zpool/container";
fsType = "zfs";
};
fileSystems."/daten" =
{ device = "zpool/daten";
fsType = "zfs";
2024-08-22 09:46:06 +02:00
};
fileSystems."/boot" =
{ device = "/dev/disk/by-partlabel/EFI";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
2024-09-05 18:34:47 +02:00
}