diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-25 22:42:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 22:42:16 +0200 |
commit | 33f83c62521656d3709e77629a8aae3175ef1dab (patch) | |
tree | 4d76374ef368a23122fa3bce6364f185f59f16cb /nixos/modules/services/security | |
parent | 3176d6fb53681394e18f57451240ee2eb05386b2 (diff) | |
parent | 7d8742da87c1b06cd6db5eba1fe5a2cf8a7b2568 (diff) |
Merge pull request #316977 from eclairevoyant/fix-mkEnableOption
treewide: fix mkEnableOption usage
Diffstat (limited to 'nixos/modules/services/security')
-rw-r--r-- | nixos/modules/services/security/fail2ban.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/security/haveged.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix index c4031b64ba6aa..b6ce42d7318c8 100644 --- a/nixos/modules/services/security/fail2ban.nix +++ b/nixos/modules/services/security/fail2ban.nix @@ -263,7 +263,7 @@ in ''; type = with types; attrsOf (either lines (submodule ({ name, ... }: { options = { - enabled = mkEnableOption "this jail." // { + enabled = mkEnableOption "this jail" // { default = true; readOnly = name == "DEFAULT"; }; diff --git a/nixos/modules/services/security/haveged.nix b/nixos/modules/services/security/haveged.nix index 57cef7e44d503..4c686d74268af 100644 --- a/nixos/modules/services/security/haveged.nix +++ b/nixos/modules/services/security/haveged.nix @@ -17,7 +17,7 @@ in enable = mkEnableOption '' haveged entropy daemon, which refills /dev/random when low. - NOTE: does nothing on kernels newer than 5.6. + NOTE: does nothing on kernels newer than 5.6 ''; # source for the note https://github.com/jirka-h/haveged/issues/57 |