3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services
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
..
admin
amqp
audio Merge pull request #151642 from antifuchs/fix-151550 2022-06-26 23:32:18 +02:00
backup nixos/restic: add backup{Prepare,Cleanup}Command options 2022-06-03 11:22:22 -03:00
blockchain/ethereum
cluster k3s: remove docker support 2022-06-15 16:40:29 -03:00
computing nixos/slurm: update systemd service for slurmd 2022-05-29 17:17:01 +02:00
continuous-integration hydra: create runcommand-logs directory 2022-06-06 11:36:58 -07:00
databases nixos.redis: Fix disabling of RDB persistence. 2022-07-05 07:37:38 -04:00
desktops nixos/pipewire: fix wireplumber with system-wide 2022-06-18 18:46:41 -07:00
development Merge pull request #164048 from hqurve/jupyter-extra-paths 2022-07-01 16:43:02 +00:00
display-managers
editors
finance
games nixos/asf: ipcPasswordFile use nullOr 2022-06-04 12:00:45 -06:00
hardware nixos/argonone: init 2022-06-24 21:20:32 -03:00
home-automation nixos/home-assistant: reload the daemon when configuration changed 2022-06-22 16:20:11 +02:00
logging logrotate: do not add mail if 'mail = false' is specified 2022-06-13 08:57:49 +09:00
mail nixos/schleuder: init module and accompanying test 2022-06-24 15:30:16 -04:00
matrix nixos/matrix-appservice-irc: wait for postgres to start 2022-06-24 08:37:43 +02:00
misc Merge pull request #179442 from alyssais/dictd 2022-07-01 16:52:54 +00:00
monitoring Merge pull request #177783 from talyz/parsedmarc-secrets 2022-06-27 15:26:10 +02:00
network-filesystems Merge pull request #166340 from max-privatevoid/patch-6 2022-06-28 19:55:10 +03:00
networking nixos/radvd: add package option 2022-07-01 21:11:46 +02:00
printing
scheduling
search
security nixos/vaultwarden: Make example more detailed. 2022-06-08 17:03:53 +02:00
system cachix-agent: expose verbose option 2022-06-30 09:56:28 -05:00
torrent
ttys nixos/kmscon: Add fonts option 2022-04-18 15:56:34 +02:00
video
wayland treewide: pkgs.systemd -> config.systemd.package 2022-05-05 20:00:31 +02:00
web-apps Merge pull request #179425 from McSinyx/phylactery 2022-06-30 18:29:19 +03:00
web-servers nixos/nginx: allow recommended proxy settings to be enabled per location 2022-06-12 19:52:35 -04:00
x11 nixos/desktop-manager: Use literal newline to fix shell syntax 2022-07-01 16:30:47 +04:00