mirror of
https://github.com/tale/headplane.git
synced 2026-08-26 04:16:49 +00:00
feat: nix: add debug logging flag
This commit is contained in:
committed by
Aarnav Tale
parent
c59632a0b7
commit
ea004df2bb
@@ -36,6 +36,12 @@ in {
|
|||||||
enable = mkEnableOption "headplane";
|
enable = mkEnableOption "headplane";
|
||||||
package = mkPackageOption pkgs "headplane" {};
|
package = mkPackageOption pkgs "headplane" {};
|
||||||
|
|
||||||
|
debug = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable debug logging";
|
||||||
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Headplane configuration options. Generates a YAML config file.
|
Headplane configuration options. Generates a YAML config file.
|
||||||
@@ -346,6 +352,8 @@ in {
|
|||||||
after = ["headscale.service"];
|
after = ["headscale.service"];
|
||||||
requires = ["headscale.service"];
|
requires = ["headscale.service"];
|
||||||
|
|
||||||
|
environment = {HEADPLANE_DEBUG_LOG = builtins.toString cfg.debug;};
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = config.services.headscale.user;
|
User = config.services.headscale.user;
|
||||||
Group = config.services.headscale.group;
|
Group = config.services.headscale.group;
|
||||||
|
|||||||
Reference in New Issue
Block a user