fix: alternative username with path or str

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-01-25 19:42:02 -03:00
parent b89fd480bb
commit 243402d053

View File

@@ -4,7 +4,7 @@ let
cfg = config.homelab.forgejo;
users = (builtins.attrValues (builtins.mapAttrs
(username: info: {
name = username;
name = if info.name then info.name else username;
email = info.email;
password = info.password;
admin = info.admin;
@@ -41,6 +41,10 @@ in
users = mkOption {
type = attrsOf (submodule ({ config, lib, ... }: {
options = {
name = {
type = nullOr (either str path);
default = null;
};
password = mkOption {
type = either str path;
};