mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 06:24:07 +02:00
45 lines
936 B
Nix
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" ];
|
|
};
|
|
}
|