nixos/nextcloud-notify_push: use lib.genAttrs
This commit is contained in:
parent
6c24a28ea6
commit
bdb0566f8b
1 changed files with 13 additions and 15 deletions
|
@ -26,21 +26,19 @@ in
|
|||
description = lib.mdDoc "Log level";
|
||||
};
|
||||
} // (
|
||||
lib.listToAttrs (
|
||||
map (
|
||||
opt: lib.nameValuePair opt (options.services.nextcloud.config.${opt} // {
|
||||
default = config.services.nextcloud.config.${opt};
|
||||
defaultText = lib.mdDoc "config.services.nextcloud.config.${opt}";
|
||||
})
|
||||
) [
|
||||
"dbtype"
|
||||
"dbname"
|
||||
"dbuser"
|
||||
"dbpassFile"
|
||||
"dbhost"
|
||||
"dbport"
|
||||
"dbtableprefix"
|
||||
]
|
||||
lib.genAttrs [
|
||||
"dbtype"
|
||||
"dbname"
|
||||
"dbuser"
|
||||
"dbpassFile"
|
||||
"dbhost"
|
||||
"dbport"
|
||||
"dbtableprefix"
|
||||
] (
|
||||
opt: options.services.nextcloud.config.${opt} // {
|
||||
default = config.services.nextcloud.config.${opt};
|
||||
defaultText = "config.services.nextcloud.config.${opt}";
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue