1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Add sudo module

This commit is contained in:
RGBCube 2023-12-12 13:49:02 +03:00
parent c8a908bb91
commit 046c216b3f
No known key found for this signature in database
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -35,6 +35,7 @@
!modules/rust/
!modules/steam/
!modules/steck/
!modules/sudo/
!modules/waybar/
!lib/

View file

@ -45,5 +45,6 @@
"rust"
"steam"
"steck"
"sudo"
"waybar"
])

10
modules/sudo/default.nix Normal file
View file

@ -0,0 +1,10 @@
{ ulib, ... }: with ulib;
systemConfiguration {
security.sudo = enabled {
extraConfig = ''
Defaults timestamp_timeout=-1
'';
execWheelOnly = true;
};
}