Skip to content

Commit

Permalink
Safer defaults for immutable znc config (#30155)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
layus authored and Mic92 committed Oct 7, 2017
1 parent 04ce72e commit 15b7e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/znc.nix
Expand Up @@ -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
Expand Down

0 comments on commit 15b7e10

Please sign in to comment.