diff --git a/webapp.nix b/webapp.nix index ff0e216..1e09d1c 100644 --- a/webapp.nix +++ b/webapp.nix @@ -57,6 +57,9 @@ let # Market Configuration VITE_MARKET_NADDR = cfg.marketNaddr; + # Demo Mode + VITE_DEMO_MODE = if cfg.demoMode then "true" else "false"; + # Additional env vars NODE_ENV = "production"; @@ -208,6 +211,12 @@ in { description = "Nostr address (naddr) for the market configuration"; }; + demoMode = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable demo mode with auto-generated demo accounts on the login page"; + }; + enableSSL = lib.mkOption { type = lib.types.bool; default = true;