cleanup: overlay zfs and modules closure for more compatibility

This commit is contained in:
Adam Stephens 2024-01-24 21:17:14 -05:00
parent 47af49c9b7
commit a7653e5516
No known key found for this signature in database

View file

@ -51,17 +51,6 @@ in
"${dtbName}" = dtb;
};
supportedFilesystems = lib.mkForce [
"ext4"
"btrfs"
"vfat"
];
initrd.supportedFilesystems = lib.mkForce [
"btrfs"
"vfat"
];
kernelPackages = linuxPackages_x13s;
kernelParams = [
@ -79,8 +68,6 @@ in
];
initrd = {
includeDefaultModules = false;
kernelModules = [
"nvme"
"phy-qcom-qmp-pcie"
@ -106,6 +93,20 @@ in
};
};
nixpkgs.overlays = [
(final: super: {
# don't try and use zfs
zfs = super.zfs.overrideAttrs (
_: {
meta.platforms = [ ];
}
);
# allow missing modules
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
})
];
# default is performance
powerManagement.cpuFreqGovernor = "ondemand";