From 172c8407ece742c70c3490fbbb64027866fe235e Mon Sep 17 00:00:00 2001 From: Xe Date: Sat, 19 Feb 2022 14:39:21 -0500 Subject: [PATCH] conditionpathexists is in systemd.unit Signed-off-by: Xe --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index bf743eb..5cb4fa9 100644 --- a/flake.nix +++ b/flake.nix @@ -60,11 +60,11 @@ systemd.services.mara-bot = { wantedBy = [ "multi-user.target" ]; environment.RUST_LOG = "tower_http=debug,info"; + unitConfig.ConditionPathExists = "/var/lib/mara-bot/config.yaml"; serviceConfig = { User = "mara-bot"; Group = "mara-bot"; Restart = "always"; - ConditionPathExists = "/var/lib/mara-bot/config.yaml"; WorkingDirectory = "/var/lib/mara-bot"; ExecStart = "${self.defaultPackage."${system}"}/bin/mara"; };