mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-21 23:04:47 +01:00
cleanup: overlay zfs and modules closure for more compatibility
This commit is contained in:
parent
47af49c9b7
commit
a7653e5516
27
module.nix
27
module.nix
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue