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

This commit is contained in:
niten 2023-05-18 12:02:13 -07:00
parent b266cf9746
commit 7bc7121a9c
1 changed files with 1 additions and 3 deletions

View File

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