mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-23 20:40:59 +00:00
nixos-module: add option logLevel
This commit is contained in:
parent
7872f67f55
commit
363152b0b4
1 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,10 @@
|
|||
type = types.str;
|
||||
default = "relay";
|
||||
};
|
||||
logLevel = mkOption {
|
||||
type = types.enum [ "ERROR" "WARN" "INFO" "DEBUG" "TRACE" ];
|
||||
default = "INFO";
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
|
@ -70,6 +74,7 @@
|
|||
systemd.services.buzzrelay = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "postgresql.service" "network-online.target" ];
|
||||
environment.RUST_LOG = "buzzrelay=${cfg.logLevel}";
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
WorkingDirectory = "${buzzrelay}/share/buzzrelay";
|
||||
|
|
Loading…
Reference in a new issue