about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2024-03-10 14:31:06 +0100
committerGitHub <noreply@github.com>2024-03-10 14:31:06 +0100
commit2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405 (patch)
tree14d265fc3de57eeffa538e9cfac2db2ba4418579 /nixos/modules
parentc38b6d6cefc481321b27669e94abd2bf5d47d30a (diff)
parent366147b86d7e9ab9081e9b077d7c0d3c5199a45f (diff)
downloadnixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.tar
nixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.tar.gz
nixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.tar.bz2
nixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.tar.lz
nixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.tar.xz
nixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.tar.zst
nixlib-2bd0c18d98a14f6f6bcef4a31f3d60b26bd00405.zip
Merge pull request #282160 from gaykitty/stargazer-debug-mode
nixos/stargazer: add missing debugMode setting
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/web-servers/stargazer.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/stargazer.nix b/nixos/modules/services/web-servers/stargazer.nix
index 18f57363137c..4eca33326040 100644
--- a/nixos/modules/services/web-servers/stargazer.nix
+++ b/nixos/modules/services/web-servers/stargazer.nix
@@ -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;