diff options
author | ajs124 <git@ajs124.de> | 2023-02-21 13:26:33 +0100 |
---|---|---|
committer | ajs124 <git@ajs124.de> | 2023-02-21 15:53:27 +0100 |
commit | bdb0566f8b7816408d2012786c1000ccff00e3a4 (patch) | |
tree | c6dcb37c08f9683de2fe6e6c634bf40e53031a43 /nixos/modules/services/web-apps | |
parent | 6c24a28ea63a277e8c040bd2c2611067351f1279 (diff) | |
download | nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.tar nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.tar.gz nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.tar.bz2 nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.tar.lz nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.tar.xz nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.tar.zst nixpkgs-bdb0566f8b7816408d2012786c1000ccff00e3a4.zip |
nixos/nextcloud-notify_push: use lib.genAttrs
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud-notify_push.nix | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud-notify_push.nix b/nixos/modules/services/web-apps/nextcloud-notify_push.nix index ccfea499c18..e36631b6093 100644 --- a/nixos/modules/services/web-apps/nextcloud-notify_push.nix +++ b/nixos/modules/services/web-apps/nextcloud-notify_push.nix @@ -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}"; + } ) ); |