diff --git a/boot.nix b/boot.nix index 49ed0a4..ddb6b2f 100644 --- a/boot.nix +++ b/boot.nix @@ -62,6 +62,12 @@ "clk_ignore_unused" "pd_ignore_unused" "iomem=relaxed" + "mem_sleep_default=s2idle" + ]; + + blacklistedKernelModules = [ + "qcom_battmgr" + "qcrypto" ]; supportedFilesystems = { diff --git a/hardware.nix b/hardware.nix index 60a1208..cd636a7 100644 --- a/hardware.nix +++ b/hardware.nix @@ -15,6 +15,11 @@ in config = { nixpkgs.hostPlatform = "aarch64-linux"; + services.udev.extraRules = '' + ACTION=="add", SUBSYSTEM=="platform", DRIVER=="dwc3-qcom-legacy", ATTR{power/control}="auto" + ACTION=="add", SUBSYSTEM=="usb", ATTR{power/control}="auto" + ''; + hardware = { enableRedistributableFirmware = lib.mkForce true; enableAllFirmware = lib.mkForce true;