summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-09-26 13:24:48 +0200
committerAlan Pearce2019-09-26 13:24:48 +0200
commitb1699076eedc46315171e0cf42e63eb6c4593459 (patch)
tree247ccf3ddc64416a4de06eedee3b86e4ebf5a704
parente206cd977ea49bc948bf16941090e35ac5aed03e (diff)
downloadnixos-configuration-b1699076eedc46315171e0cf42e63eb6c4593459.tar.lz
nixos-configuration-b1699076eedc46315171e0cf42e63eb6c4593459.tar.zst
nixos-configuration-b1699076eedc46315171e0cf42e63eb6c4593459.zip
laptop: only run docker-prune on AC power
-rw-r--r--modules/hardware/laptop.nix1
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