feat: add adminUsername option back to NixOS module

This commit is contained in:
didier committed 2026-06-16 13:15:33 -04:00
1 parent 861d0e40ed
commit 8fa9d43530
1 file changed
+9
+9
View File
@@ -95,6 +95,12 @@
description = "Bcrypt hash of the admin bootstrap password."; 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 { sqlitePath = lib.mkOption {
type = lib.types.path; type = lib.types.path;
default = "/var/lib/st-pierre/st-pierre.sqlite"; default = "/var/lib/st-pierre/st-pierre.sqlite";
@@ -155,6 +161,9 @@
} }
// lib.optionalAttrs (cfg.adminPasswordHash != null) { // lib.optionalAttrs (cfg.adminPasswordHash != null) {
ADMIN_PASSWORD_HASH = cfg.adminPasswordHash; ADMIN_PASSWORD_HASH = cfg.adminPasswordHash;
}
// {
ADMIN_USERNAME = cfg.adminUsername;
}; };
}; };
}; };