File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 7676 export TERM=$TERM
7777 '' ;
7878
79- security . sudo . extraConfig = lib . mkIf config . security . sudo . keepTerminfo ''
80-
81- # Keep terminfo database for root and %wheel.
82- Defaults:root,%wheel env_keep+=TERMINFO_DIRS
83- Defaults:root,%wheel env_keep+=TERMINFO
84- '' ;
79+ security =
80+ let
81+ extraConfig = ''
8582
83+ # Keep terminfo database for root and %wheel.
84+ Defaults:root,%wheel env_keep+=TERMINFO_DIRS
85+ Defaults:root,%wheel env_keep+=TERMINFO
86+ '' ;
87+ in
88+ lib . mkIf config . security . sudo . keepTerminfo {
89+ sudo = { inherit extraConfig ; } ;
90+ sudo-rs = { inherit extraConfig ; } ;
91+ } ;
8692 } ;
8793}
Original file line number Diff line number Diff line change 3636
3737 defaultOptions = lib . mkOption {
3838 type = with lib . types ; listOf str ;
39- default = [ ] ;
39+ default = [ "SETENV" ] ;
4040 description = ''
4141 Options used for the default rules, granting `root` and the
4242 `wheel` group permission to run any command as any user.
You can’t perform that action at this time.
0 commit comments