diff options
author | Cole Helbling <cole.e.helbling@outlook.com> | 2020-11-14 19:15:11 -0800 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2020-11-14 19:16:56 -0800 |
commit | 19c0927d306d3cfdd3f4f313c4b4277c3da22ea0 (patch) | |
tree | 0d8640b3c01cacfe6b94d2fb4d2d3fcbadc67c95 /nixos/modules | |
parent | caad9aba5a2ed81dc74b432660fa5766b4dd29d7 (diff) |
nixos/doas: add noLog option
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/security/doas.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/security/doas.nix b/nixos/modules/security/doas.nix index b81f2d0c2d52..27f6870aaf37 100644 --- a/nixos/modules/security/doas.nix +++ b/nixos/modules/security/doas.nix @@ -12,6 +12,7 @@ let mkOpts = rule: concatStringsSep " " [ (optionalString rule.noPass "nopass") + (optionalString rule.noLog "nolog") (optionalString rule.persist "persist") (optionalString rule.keepEnv "keepenv") "setenv { SSH_AUTH_SOCK ${concatStringsSep " " rule.setEnv} }" @@ -118,6 +119,16 @@ in ''; }; + noLog = mkOption { + type = with types; bool; + default = false; + description = '' + If <code>true</code>, successful executions will not be logged + to + <citerefentry><refentrytitle>syslogd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. + ''; + }; + persist = mkOption { type = with types; bool; default = false; |