diff options
author | Alan Pearce | 2019-09-26 13:24:48 +0200 |
---|---|---|
committer | Alan Pearce | 2019-09-26 13:24:48 +0200 |
commit | b1699076eedc46315171e0cf42e63eb6c4593459 (patch) | |
tree | 247ccf3ddc64416a4de06eedee3b86e4ebf5a704 /modules/hardware | |
parent | e206cd977ea49bc948bf16941090e35ac5aed03e (diff) | |
download | nixos-configuration-b1699076eedc46315171e0cf42e63eb6c4593459.tar.lz nixos-configuration-b1699076eedc46315171e0cf42e63eb6c4593459.tar.zst nixos-configuration-b1699076eedc46315171e0cf42e63eb6c4593459.zip |
laptop: only run docker-prune on AC power
Diffstat (limited to 'modules/hardware')
-rw-r--r-- | modules/hardware/laptop.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/hardware/laptop.nix b/modules/hardware/laptop.nix index 43439e3..e90f4f1 100644 --- a/modules/hardware/laptop.nix +++ b/modules/hardware/laptop.nix @@ -75,6 +75,7 @@ systemd.services.nixos-upgrade.unitConfig.ConditionACPower = true; systemd.services.nix-gc.unitConfig.ConditionACPower = true; + systemd.services.docker-prune.unitConfig.ConditionACPower = true; imports = [ ../user-interface.nix |