From 631e425b8090c63b911464acf7a968c29867f4bf Mon Sep 17 00:00:00 2001 From: Padreug Date: Sat, 25 Apr 2026 16:39:32 +0200 Subject: [PATCH] Add demoMode option for demo login page When enabled, sets VITE_DEMO_MODE=true which switches the login page to LoginDemo.vue with auto-generated demo account creation. Co-Authored-By: Claude Opus 4.6 (1M context) --- webapp.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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;