From b3aaf7459bb7c22ca2c5292990b399a865d56c26 Mon Sep 17 00:00:00 2001 From: kat witch Date: Wed, 7 Jul 2021 18:12:07 +0100 Subject: [PATCH] make nfs + promtail dependent upon yggdrassil to stop shutdown hang --- config/profiles/gui/nfs.nix | 4 ++++ config/services/promtail.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/config/profiles/gui/nfs.nix b/config/profiles/gui/nfs.nix index 9f897cf6..be5a559b 100644 --- a/config/profiles/gui/nfs.nix +++ b/config/profiles/gui/nfs.nix @@ -20,4 +20,8 @@ fsType = "nfs"; options = [ "x-systemd.automount" "noauto" ]; }; + + systemd.services.nfs-mountd = { + wants = [ "network-online.target" "yggdrassil.service" ]; + }; } diff --git a/config/services/promtail.nix b/config/services/promtail.nix index 7fbd5cc0..c004b056 100644 --- a/config/services/promtail.nix +++ b/config/services/promtail.nix @@ -31,6 +31,7 @@ in systemd.services.promtail = { description = "Promtail service for Loki"; wantedBy = [ "multi-user.target" ]; + wants = [ "yggdrassil.service" ]; serviceConfig = { ExecStart = ''