From 28cf78b857597cb715a9d84edcc0f3f9f6c89bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 14 Aug 2023 13:03:06 +0300 Subject: [PATCH] headscale.oidc: client_secret_path is a string It can be include an environment-variable, like `${CREDENTIALS_DIRECTORY}/some-path`, failing validation for `types.path`. --- nixos/modules/services/networking/headscale.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/headscale.nix b/nixos/modules/services/networking/headscale.nix index 78253dd9d112..03e6f86af53f 100644 --- a/nixos/modules/services/networking/headscale.nix +++ b/nixos/modules/services/networking/headscale.nix @@ -292,7 +292,7 @@ in { }; client_secret_path = mkOption { - type = types.nullOr types.path; + type = types.nullOr types.str; default = null; description = lib.mdDoc '' Path to OpenID Connect client secret file. Expands environment variables in format ''${VAR}.