summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/grafana.nix
diff options
context:
space:
mode:
authorKristoffer Føllesdal <kfollesdal@gmail.com>2022-05-18 16:09:04 +0200
committerKristoffer Føllesdal <kfollesdal@gmail.com>2022-05-18 16:09:04 +0200
commit298e2ce302c3d4eeacaca4bf4d0437253a8cafbc (patch)
tree219070e6f7fb9e17aab83a66af55c56ad1c6c7c1 /nixos/modules/services/monitoring/grafana.nix
parentea8f7e7bbdea64e693fc09f0a68d55d5a260020f (diff)
downloadnixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.tar
nixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.tar.gz
nixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.tar.bz2
nixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.tar.lz
nixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.tar.xz
nixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.tar.zst
nixpkgs-298e2ce302c3d4eeacaca4bf4d0437253a8cafbc.zip
nixos/grafana: add disableLoginForm option
Diffstat (limited to 'nixos/modules/services/monitoring/grafana.nix')
-rw-r--r--nixos/modules/services/monitoring/grafana.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix
index 6e727a72aa9..497d4674138 100644
--- a/nixos/modules/services/monitoring/grafana.nix
+++ b/nixos/modules/services/monitoring/grafana.nix
@@ -42,6 +42,8 @@ let
     USERS_AUTO_ASSIGN_ORG = boolToString cfg.users.autoAssignOrg;
     USERS_AUTO_ASSIGN_ORG_ROLE = cfg.users.autoAssignOrgRole;
 
+    AUTH_DISABLE_LOGIN_FORM = boolToString cfg.auth.disableLoginForm;
+
     AUTH_ANONYMOUS_ENABLED = boolToString cfg.auth.anonymous.enable;
     AUTH_ANONYMOUS_ORG_NAME = cfg.auth.anonymous.org_name;
     AUTH_ANONYMOUS_ORG_ROLE = cfg.auth.anonymous.org_role;
@@ -567,6 +569,12 @@ in {
     };
 
     auth = {
+      disableLoginForm = mkOption {
+        description = "Set to true to disable (hide) the login form, useful if you use OAuth";
+        default = false;
+        type = types.bool;
+      };
+
       anonymous = {
         enable = mkOption {
           description = "Whether to allow anonymous access.";