diff --git a/laptop.nix b/laptop.nix index 1131773..5e3de52 100644 --- a/laptop.nix +++ b/laptop.nix @@ -35,6 +35,11 @@ in { pcie_aspm = mkIf cfg.tweaks.pcieAspmForce "force"; }; + systemd.services.nixos-upgrade = { + unitConfig = { + ConditionACPower = true; + }; + }; systemd.services.aspm-force-enable = let