[Laptop] Don't start automatic system upgrade if on battery

This commit is contained in:
Antoine Viallon 2023-03-31 21:16:57 +02:00
parent 8d15670645
commit 8ed4a576e2
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -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