From 15b7e102b673ddef5068af14f0b2272f32f20880 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Sat, 7 Oct 2017 17:38:14 +0200 Subject: [PATCH] Safer defaults for immutable znc config (#30155) * Safer defaults for immutable znc config I just lost all the options I configured in ZNC, because the mutable config was overwritten. I accept any suggestions on the way to implement this, but overwriting a mutable config by default seems weird. If we want to do this, we should ensure that ZNC does not allow to edit the config via the webmin when cfg.mutable is false. * Do not backup old config files. There seems to be little need for backups if mutable becomes a voluntary opt-out. * fixup --- nixos/modules/services/networking/znc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/znc.nix b/nixos/modules/services/networking/znc.nix index 3d9cec46a58..72313ab2ee1 100644 --- a/nixos/modules/services/networking/znc.nix +++ b/nixos/modules/services/networking/znc.nix @@ -329,7 +329,7 @@ in }; mutable = mkOption { - default = false; + default = true; type = types.bool; description = '' Indicates whether to allow the contents of the `dataDir` directory to be changed