mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
added rules so sudo doesn't change editor or pager
This commit is contained in:
parent
48179c0221
commit
b088bbcd57
1 changed files with 7 additions and 0 deletions
|
|
@ -15,6 +15,13 @@
|
|||
TERMINAL = "st";
|
||||
};
|
||||
};
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
execWheelOnly = true;
|
||||
extraConfig = ''
|
||||
Defaults env_keep += "EDITOR VISUAL PAGER SYSTEMD_PAGERSECURE TERMINAL"
|
||||
'';
|
||||
};
|
||||
#hardware stuff
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue