summaryrefslogtreecommitdiff
path: root/hosts/common/security.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common/security.nix')
-rw-r--r--hosts/common/security.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/hosts/common/security.nix b/hosts/common/security.nix
index debd6b7..2d473be 100644
--- a/hosts/common/security.nix
+++ b/hosts/common/security.nix
@@ -1,7 +1,10 @@
-{ lib, config, ... }:
-
-with builtins; with lib;
{
+ lib,
+ config,
+ ...
+}:
+with builtins;
+with lib; {
security.sudo = {
configFile = ''
Defaults env_reset
@@ -10,8 +13,15 @@ with builtins; with lib;
'';
execWheelOnly = true;
extraRules = [
- { users = [ "root" ]; groups = [ "root" ]; commands = [ "ALL" ]; }
- { users = [ "seth" ]; commands = [ "ALL" ]; }
+ {
+ users = ["root"];
+ groups = ["root"];
+ commands = ["ALL"];
+ }
+ {
+ users = ["seth"];
+ commands = ["ALL"];
+ }
];
};
}