2023-06-28 14:17:17 +02:00
|
|
|
{
|
2023-12-10 15:28:28 +01:00
|
|
|
pkgs,
|
|
|
|
inputs',
|
|
|
|
...
|
|
|
|
}: let
|
2023-12-10 16:01:50 +01:00
|
|
|
kernelPackages =
|
|
|
|
(pkgs.zfs.override {
|
|
|
|
removeLinuxDRM = pkgs.hostPlatform.isAarch64;
|
|
|
|
})
|
|
|
|
.latestCompatibleLinuxPackages;
|
2023-12-10 15:28:28 +01:00
|
|
|
in {
|
2023-06-28 14:17:17 +02:00
|
|
|
imports = [
|
|
|
|
(inputs'.nixpkgs + "/nixos/modules/profiles/qemu-guest.nix")
|
|
|
|
];
|
|
|
|
|
2023-12-10 15:28:28 +01:00
|
|
|
boot = {
|
|
|
|
initrd.kernelModules = ["nvme"];
|
|
|
|
kernelPackages = kernelPackages;
|
|
|
|
zfs.enableUnstable = true;
|
2023-12-10 16:01:50 +01:00
|
|
|
zfs.removeLinuxDRM = true;
|
2023-12-10 15:28:28 +01:00
|
|
|
};
|
2023-06-28 14:17:17 +02:00
|
|
|
}
|