nixpkgs/nixos/modules/services/databases
Kevin Cox 568d2e77f4
nixos.redis: Fix disabling of RDB persistence.
I was under the impression that setting `services.redis.servers.<name>.save = []` would disable RDB persistence as no schedule would mean no persistence. However since the code did not handle this case specially it actually results in no `save` setting being written and the internal Redis default is used.

This patch handles the empty case to disable RDB persistence.

Disabling RDB persistence is useful in a number of scenarios:

1. Using Redis in a pure-cache mode where persistence is not desired.
2. When using the (generally superior) AOF persistence mode this file is never read so there is little point to writing it.
3. When saving is handled manually

For more information see https://redis.io/docs/manual/persistence/

This is a breaking change as the user may have been relying on `[]` using Redis defaults. However I believe that updating the behaviour for the next release is beneficial as IMHO it is less surprising and does what the user would expect. I have added release notes to warn about this change.
2022-07-05 07:37:38 -04:00
..
aerospike.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
cassandra.nix nixos/cassandra: Convert option docs to markdown 2022-06-21 13:20:13 +02:00
clickhouse.nix nixos/clickhouse: add package option 2021-11-21 20:29:41 +01:00
cockroachdb.nix nixos/cockroachdb: use escapeSystemdExecArgs for ExecStart args 2022-04-12 10:34:56 +02:00
couchdb.nix couchdb3: 3.2.1 -> 3.2.2 2022-04-26 09:02:36 +00:00
dgraph.nix dgraph: add module 2022-06-28 02:34:54 -04:00
dragonflydb.nix dragonflydb: init at 0.1.0 2022-06-06 04:05:48 +05:30
firebird.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
foundationdb.nix
foundationdb.xml
hbase.nix nixos/hbase: refactor settings option 2021-12-09 01:38:24 +01:00
influxdb2.nix influxdb2 service: don't use dynamic user 2021-12-27 20:31:27 +03:00
influxdb.nix nixos/influxdb: Fix cross compilation for config.toml 2021-10-10 10:34:55 +02:00
memcached.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
monetdb.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mongodb.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mysql.nix nixos/mysql: minor cleanup and formatting 2021-12-22 08:57:18 -05:00
neo4j.nix nixos/tarsnap, nixos/neo4j: defaultText for submodule options 2021-12-09 01:42:24 +01:00
openldap.nix nixos/openldap: fix systemd rejecting notification (#177084) 2022-06-13 15:28:12 +02:00
opentsdb.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
pgmanage.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
postgresql.nix nixos/postgresql: use postgres 14 for 22.05 2022-05-03 22:23:08 +00:00
postgresql.xml nixos/postgresql: improve docs on how to upgrade 2021-12-11 18:22:31 +01:00
redis.nix nixos.redis: Fix disabling of RDB persistence. 2022-07-05 07:37:38 -04:00
rethinkdb.nix
victoriametrics.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00