From a7653e55163adf1f2636f7dcc350af58fe252611 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Wed, 24 Jan 2024 21:17:14 -0500 Subject: [PATCH] cleanup: overlay zfs and modules closure for more compatibility --- module.nix | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/module.nix b/module.nix index e73a121..b426143 100644 --- a/module.nix +++ b/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";