forgejo: add default empty users option
This commit is contained in:
parent
86550e1261
commit
9bb097fec1
1 changed files with 10 additions and 8 deletions
|
|
@ -47,6 +47,7 @@ in
|
|||
|
||||
(lib.mkRemovedOptionModule [ "shb" "forgejo" "adminPassword" ] ''
|
||||
Instead, define an admin user in shb.forgejo.users and give it the same password, like so:
|
||||
|
||||
shb.forgejo.users = {
|
||||
"forgejoadmin" = {
|
||||
isAdmin = true;
|
||||
|
|
@ -233,6 +234,7 @@ in
|
|||
|
||||
users = mkOption {
|
||||
description = "Users managed declaratively.";
|
||||
default = { };
|
||||
type = attrsOf (submodule {
|
||||
options = {
|
||||
isAdmin = mkOption {
|
||||
|
|
@ -331,7 +333,7 @@ in
|
|||
options = shb.contracts.backup.mkRequester {
|
||||
user = options.services.forgejo.user.value;
|
||||
sourceDirectories = [
|
||||
options.services.forgejo.dump.backupDir.value
|
||||
config.services.forgejo.dump.backupDir
|
||||
]
|
||||
++ optionals (cfg.repositoryRoot != null) [
|
||||
cfg.repositoryRoot
|
||||
|
|
|
|||
Loading…
Reference in a new issue