Browse Source

This is a user service...don't run as a dynamic user

master
niten 4 months ago
parent
commit
7bc7121a9c
  1. 4
      module.nix

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

Loading…
Cancel
Save