diff --git a/nix/options.nix b/nix/options.nix index 80cc7b2..5b12268 100644 --- a/nix/options.nix +++ b/nix/options.nix @@ -44,6 +44,13 @@ in { description = "The port to listen on."; }; + base_url = mkOption { + type = types.str; + default = "http://localhost:3000"; + description = "The base URL for Headplane, not including the dashboard prefix (/admin) portion"; + example = "http://localhost:3000"; + }; + cookie_secret_path = mkOption { type = types.nullOr types.path; default = null; @@ -93,6 +100,13 @@ in { ''; example = "/var/lib/headplane"; }; + + info_secret = mkOption { + type = types.nullOr types.str; + default = null; + description = "Secret is optional and allows access to certain debug endpoints"; + example = "config.sops.secrets.info_secret.path"; + }; }; }; default = {}; @@ -308,16 +322,6 @@ in { example = "config.sops.secrets.headscale_api_key.path"; }; - redirect_uri = mkOption { - type = types.str; - default = ""; - description = '' - This should point to your publicly accessible URL - for your Headplane instance with /admin/oidc/callback. - ''; - example = "https://headscale.example.com/admin/oidc/callback"; - }; - user_storage_file = mkOption { type = types.path; default = "/var/lib/headplane/users.json"; @@ -326,6 +330,12 @@ in { ''; example = "/var/lib/headplane/users.json"; }; + + use_pkce = mkOption { + type = types.bool; + default = false; + description = "Whether to use PKCE when authenticating users."; + }; }; }; default = {};