mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge pull request #282160 from gaykitty/stargazer-debug-mode
nixos/stargazer: add missing debugMode setting
This commit is contained in:
commit
2bd0c18d98
@ -129,6 +129,12 @@ in
|
||||
example = lib.literalExpression "\"1y\"";
|
||||
};
|
||||
|
||||
debugMode = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Run Stargazer in debug mode.";
|
||||
};
|
||||
|
||||
routes = lib.mkOption {
|
||||
type = lib.types.listOf
|
||||
(lib.types.submodule {
|
||||
@ -195,7 +201,7 @@ in
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.stargazer}/bin/stargazer ${configFile}";
|
||||
ExecStart = "${pkgs.stargazer}/bin/stargazer ${configFile} ${lib.optionalString cfg.debugMode "-D"}";
|
||||
Restart = "always";
|
||||
# User and group
|
||||
User = cfg.user;
|
||||
|
Loading…
Reference in New Issue
Block a user