This is a user service...don't run as a dynamic user
This commit is contained in:
parent
b266cf9746
commit
7bc7121a9c
|
@ -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…
Reference in New Issue