From 16c6d9e9070bd52ecc312f4c6f974e2aaac44969 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sun, 29 Dec 2024 08:48:59 +0100 Subject: [PATCH] lifebook: make suspend work, DSDT override --- hosts/lifebook/default.nix | 11 +---------- hosts/lifebook/hardware-configuration.nix | 5 ----- hosts/lifebook/patched-SSDT4 | Bin 0 -> 13824 bytes 3 files changed, 1 insertion(+), 15 deletions(-) create mode 100755 hosts/lifebook/patched-SSDT4 diff --git a/hosts/lifebook/default.nix b/hosts/lifebook/default.nix index 1a2441e..840cb93 100644 --- a/hosts/lifebook/default.nix +++ b/hosts/lifebook/default.nix @@ -30,6 +30,7 @@ boot = { # Boot options kernelPackages = pkgs.linuxPackages_latest; + initrd.prepend = [ "${/boot/patched-SSDT4}" ]; loader = { # EFI Boot systemd-boot.enable = lib.mkForce false; @@ -46,10 +47,6 @@ }; }; -# hardware.sane = { # Used for scanning with Xsane -# enable = false; -# extraBackends = [ pkgs.sane-airscan ]; -# }; hardware = { nitrokey.enable = true; }; @@ -85,10 +82,4 @@ #tailscale.enable = true; }; - - #temporary bluetooth fix -# systemd.tmpfiles.rules = [ -# "d /var/lib/bluetooth 700 root root - -" -# ]; -# systemd.targets."bluetooth".after = ["systemd-tmpfiles-setup.service"]; } diff --git a/hosts/lifebook/hardware-configuration.nix b/hosts/lifebook/hardware-configuration.nix index 3dec080..a22927f 100644 --- a/hosts/lifebook/hardware-configuration.nix +++ b/hosts/lifebook/hardware-configuration.nix @@ -42,11 +42,6 @@ zramSwap.enable = true; -# powerManagement = { -# powerDownCommands = "${pkgs.kmod}/bin/rmmod intel_lpss_pci"; -# resumeCommands = "${pkgs.kmod}/bin/modprobe intel_lpss_pci"; -# }; - services = { btrfs.autoScrub = { diff --git a/hosts/lifebook/patched-SSDT4 b/hosts/lifebook/patched-SSDT4 new file mode 100755 index 0000000000000000000000000000000000000000..95ce879f2b1e285a7a3085090016a003bf1a46c2 GIT binary patch literal 13824 zcmeI3&vP3`cE@`Nf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