infra/roles/hetzner/amd.nix

39 lines
700 B
Nix
Raw Normal View History

2022-12-31 07:24:17 +01:00
{ modulesPath, ... }:
2022-01-16 09:48:21 +01:00
{
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
# SATA ssd (only build01)
"sd_mod"
# NVME
"nvme"
];
boot.kernelModules = [
"kvm-amd"
];
fileSystems."/" = {
2022-08-14 16:49:30 +02:00
device = "zroot/root/nixos";
fsType = "zfs";
2022-01-16 09:48:21 +01:00
};
fileSystems."/home" = {
device = "zroot/root/home";
fsType = "zfs";
# We don't want servers to go in systemd rescue mode, but rather having
# failed mounts show up in monitoring
options = [ "nofail" ];
};
fileSystems."/boot" = {
device = "/dev/md127";
fsType = "ext4";
options = [ "nofail" ];
};
}