From 75d507223b2a5c6d7b7ff4f680ab80ac06db4ff2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 14 Apr 2021 21:49:10 +0200 Subject: fix(modules/automatic-gc): Add nix-daemon to requisites This will require the daemon to be running when launching GC, but won't start it if it happens to not be running for some reason. Change-Id: If48fe336030173f028428fc00a81d339ef4b8bce Reviewed-on: https://cl.tvl.fyi/c/depot/+/3015 Tested-by: BuildkiteCI Reviewed-by: sterni --- ops/modules/automatic-gc.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'ops/modules') diff --git a/ops/modules/automatic-gc.nix b/ops/modules/automatic-gc.nix index 6904afc673d8..504408a92497 100644 --- a/ops/modules/automatic-gc.nix +++ b/ops/modules/automatic-gc.nix @@ -79,6 +79,7 @@ in { systemd.timers.automatic-gc = { inherit description; + requisite = [ "nix-daemon.service" ]; wantedBy = [ "multi-user.target" ]; timerConfig = { -- cgit 1.4.1