diff options
| author | seth <[email protected]> | 2022-12-01 22:17:21 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2022-12-01 22:17:39 -0500 |
| commit | aca5eff381f76bc29f25191efc281ccf50cf0e3e (patch) | |
| tree | e265f9ad2048225a56beba60197fb2b63f848af5 /hosts/glados/security.nix | |
| parent | ae4332f4e2f6c95289f43e0c233ee75066669669 (diff) | |
initial commit of files
Diffstat (limited to 'hosts/glados/security.nix')
| -rw-r--r-- | hosts/glados/security.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/glados/security.nix b/hosts/glados/security.nix new file mode 100644 index 0000000..debd6b7 --- /dev/null +++ b/hosts/glados/security.nix @@ -0,0 +1,17 @@ +{ lib, config, ... }: + +with builtins; with lib; +{ + security.sudo = { + configFile = '' + Defaults env_reset + Defaults secure_path = /run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin + Defaults editor = /run/current-system/sw/bin/vim,!env_editor + ''; + execWheelOnly = true; + extraRules = [ + { users = [ "root" ]; groups = [ "root" ]; commands = [ "ALL" ]; } + { users = [ "seth" ]; commands = [ "ALL" ]; } + ]; + }; +} |
