Skip to content

Commit

Permalink
nix: fix credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Aug 3, 2024
1 parent 500fadb commit 554f0d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ in
POST_LISTEN_ADDR = "${if (lib.hasInfix ":" listenAddr) then "[${listenAddr}]" else listenAddr}:${toString cfg.listen.port}";
POST_SMTP_ADDR = "${if (lib.hasInfix ":" smtpAddr) then "[${smtpAddr}]" else smtpAddr}:${toString cfg.smtp.port}";
POST_TEMPLATE_GLOB = cfg.templateGlob;
POST_API_TOKEN_FILE = cfg.apiTokenFile;
POST_API_TOKEN_FILE = "%d/api_token";
};

serviceConfig = {
ExecStart = "${cfg.package}/bin/post";
DynamicUser = true;
User = "post";
LoadCredential = "api_token:${cfg.apiTokenFile}";
};
};
};
Expand Down

0 comments on commit 554f0d4

Please sign in to comment.