about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2017-10-07 17:38:14 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-10-07 16:38:14 +0100
commit15b7e102b673ddef5068af14f0b2272f32f20880 (patch)
tree8631635a2531bb572ae90ee691ead18780c0167f
parent04ce72e40e91e285ab38eb65cacaf1d826fa9a20 (diff)
downloadnixlib-15b7e102b673ddef5068af14f0b2272f32f20880.tar
nixlib-15b7e102b673ddef5068af14f0b2272f32f20880.tar.gz
nixlib-15b7e102b673ddef5068af14f0b2272f32f20880.tar.bz2
nixlib-15b7e102b673ddef5068af14f0b2272f32f20880.tar.lz
nixlib-15b7e102b673ddef5068af14f0b2272f32f20880.tar.xz
nixlib-15b7e102b673ddef5068af14f0b2272f32f20880.tar.zst
nixlib-15b7e102b673ddef5068af14f0b2272f32f20880.zip
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
-rw-r--r--nixos/modules/services/networking/znc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/znc.nix b/nixos/modules/services/networking/znc.nix
index 3d9cec46a582..72313ab2ee14 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