From 7bc7121a9c2f9c9fba4b640e855f62beea8f259d Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 18 May 2023 12:02:13 -0700 Subject: [PATCH] This is a user service...don't run as a dynamic user --- module.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module.nix b/module.nix index 4b40c76..9bd80d6 100644 --- a/module.nix +++ b/module.nix @@ -50,8 +50,6 @@ in { path = [ tattler ]; wantedBy = [ "default.target" ]; serviceConfig = { - DynamicUser = true; - LoadCredential = [ "mqtt.passwd:${cfg.mqtt.password-file}" ]; ExecStart = pkgs.writeShellScript "tattler.sh" (concatStringsSep " " ([ "tattler" "--mqtt-host=${cfg.mqtt.host}" @@ -61,7 +59,7 @@ in { ] ++ (optional cfg.verbose "--verbose") ++ (optional (cfg.mqtt.user != null) "--mqtt-user=${cfg.mqtt.user}") ++ (optional (cfg.mqtt.password-file != null) - "--mqtt-user=$CREDENTIALS_DIRECTORY/mqtt.passwd"))); + "--mqtt-password=${cfg.password-file}"))); Restart = "always"; }; };