From 19c0927d306d3cfdd3f4f313c4b4277c3da22ea0 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Sat, 14 Nov 2020 19:15:11 -0800 Subject: [PATCH] nixos/doas: add noLog option --- nixos/modules/security/doas.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/modules/security/doas.nix b/nixos/modules/security/doas.nix index b81f2d0c2d5..27f6870aaf3 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 true, successful executions will not be logged + to + syslogd8. + ''; + }; + persist = mkOption { type = with types; bool; default = false;