From 001a29326488675686969b9df3df53c8977ef50a Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 12 Dec 2022 00:15:47 +0100 Subject: [PATCH] Improve service dependency management --- modules/periodic.nix | 1 + modules/webstack.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/periodic.nix b/modules/periodic.nix index cbea93b..f0f77f1 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -49,6 +49,7 @@ in { requires = [ "systemd-udev-settle.service" ]; after = [ "systemd-udev-settle.service" ]; conflicts = [ "umount.target" ]; + requiredBy = [ "syncthing.service" "radicale.service" "gitea.service" ]; }; # HACK: restart services dependent on ZFS afer mount diff --git a/modules/webstack.nix b/modules/webstack.nix index e66bc38..a3f4c53 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -200,5 +200,6 @@ "radicale.service" "dendrite.service" "phpfpm-wallabag.service" + "systemd-tmpfiles-setup.service" ]; }