From b1699076eedc46315171e0cf42e63eb6c4593459 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 26 Sep 2019 13:24:48 +0200 Subject: laptop: only run docker-prune on AC power --- modules/hardware/laptop.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/hardware') 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 -- cgit 1.4.1