summary refs log tree commit diff stats
path: root/modules/hardware
diff options
context:
space:
mode:
authorAlan Pearce2019-09-26 13:24:48 +0200
committerAlan Pearce2019-09-26 13:24:48 +0200
commitb1699076eedc46315171e0cf42e63eb6c4593459 (patch)
tree247ccf3ddc64416a4de06eedee3b86e4ebf5a704 /modules/hardware
parente206cd977ea49bc948bf16941090e35ac5aed03e (diff)
downloadnixfiles-b1699076eedc46315171e0cf42e63eb6c4593459.tar.lz
nixfiles-b1699076eedc46315171e0cf42e63eb6c4593459.tar.zst
nixfiles-b1699076eedc46315171e0cf42e63eb6c4593459.zip
laptop: only run docker-prune on AC power
Diffstat (limited to 'modules/hardware')
-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 43439e3d..e90f4f1e 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