mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
nixos: log level option
This commit is contained in:
parent
955d694292
commit
4e471a9935
1 changed files with 9 additions and 1 deletions
10
module.nix
10
module.nix
|
|
@ -52,6 +52,13 @@ in {
|
|||
description = "open mdns port";
|
||||
};
|
||||
|
||||
logging = mkOption rec {
|
||||
type = types.str;
|
||||
default = "INFO";
|
||||
example = "WARN";
|
||||
description = "log level";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
description = "package to use";
|
||||
|
|
@ -72,7 +79,8 @@ in {
|
|||
path = lib.optional cfg.zfs pkgs.zfs;
|
||||
environment =
|
||||
{
|
||||
PORT = "${toString cfg.port}";
|
||||
PORT = toString cfg.port;
|
||||
RUST_LOG = cfg.logging;
|
||||
LD_LIBRARY_PATH = "/run/opengl-driver/lib/"; # needed for nvidia
|
||||
}
|
||||
// (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue