From ea004df2bb98b6172050c049bf2380faf632eef7 Mon Sep 17 00:00:00 2001 From: Igor Ramazanov Date: Sun, 27 Jul 2025 02:54:59 +0000 Subject: [PATCH] feat: nix: add `debug` logging flag --- nix/module.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/module.nix b/nix/module.nix index 43af525..9c163a1 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -36,6 +36,12 @@ in { enable = mkEnableOption "headplane"; package = mkPackageOption pkgs "headplane" {}; + debug = mkOption { + type = types.bool; + default = false; + description = "Enable debug logging"; + }; + settings = mkOption { description = '' Headplane configuration options. Generates a YAML config file. @@ -346,6 +352,8 @@ in { after = ["headscale.service"]; requires = ["headscale.service"]; + environment = {HEADPLANE_DEBUG_LOG = builtins.toString cfg.debug;}; + serviceConfig = { User = config.services.headscale.user; Group = config.services.headscale.group;