mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Laptop] Don't start automatic system upgrade if on battery
This commit is contained in:
parent
8d15670645
commit
8ed4a576e2
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue