From 8fa9d4353094ee57f5a2b93e85b9382127d51115 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Tue, 16 Jun 2026 13:15:33 -0400 Subject: [PATCH] feat: add adminUsername option back to NixOS module --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 580691a..bcc5f0a 100644 --- a/flake.nix +++ b/flake.nix @@ -95,6 +95,12 @@ description = "Bcrypt hash of the admin bootstrap password."; }; + adminUsername = lib.mkOption { + type = lib.types.str; + default = "admin"; + description = "Username of the admin user created at bootstrap."; + }; + sqlitePath = lib.mkOption { type = lib.types.path; default = "/var/lib/st-pierre/st-pierre.sqlite"; @@ -155,6 +161,9 @@ } // lib.optionalAttrs (cfg.adminPasswordHash != null) { ADMIN_PASSWORD_HASH = cfg.adminPasswordHash; + } + // { + ADMIN_USERNAME = cfg.adminUsername; }; }; };