nixos-config/hosts/server/default.nix
Mohamed C. f31ddf2583
Some checks are pending
Flake.lock / build (push) Waiting to run
server settings with zfs
2024-09-05 18:34:47 +02:00

45 lines
936 B
Nix

{ ... }:
{
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.zfs.enabled = true;
services.zfs.autoScrub.enable = true;
fileSystems."/" =
{ device = "zpool/root";
fsType = "zfs";
};
fileSystems."/nix" =
{ device = "zpool/nix";
fsType = "zfs";
};
fileSystems."/var" =
{ device = "zpool/var";
fsType = "zfs";
};
fileSystems."/home" =
{ device = "zpool/home";
fsType = "zfs";
};
fileSystems."/container" =
{ device = "zpool/container";
fsType = "zfs";
};
fileSystems."/daten" =
{ device = "zpool/daten";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-partlabel/EFI";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
}