···124124 type = lib.types.separatedString " ";125125 default = "-C";126126 description = ''127127- Command line options for pg_dump or pg_dumpall.127127+ Command line options for pg_dump. This options is not used if128128+ `config.services.postgresqlBackup.backupAll` is enabled. Note that129129+ config.services.postgresqlBackup.backupAll is also active, when no130130+ databases where specified.131131+ '';132132+ };133133+134134+ pgdumpAllOptions = lib.mkOption {135135+ type = lib.types.separatedString " ";136136+ default = "";137137+ description = ''138138+ Command line options for pg_dumpall. This options is not used if139139+ `config.services.postgresqlBackup.backupAll` is disabled.128140 '';129141 };130142···187175 }188176189177 (lib.mkIf cfg.backupAll {190190- systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall ${cfg.pgdumpOptions}";178178+ systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall ${cfg.pgdumpAllOptions}";191179 })192180193181 (lib.mkIf (!cfg.backupAll) {