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"; }; };