diff options
| author | seth <[email protected]> | 2023-02-20 01:53:23 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-20 01:53:23 -0500 |
| commit | 0957b051ef4befd86ce97deef04f5095bea9543b (patch) | |
| tree | a669111fa7b0123a4e77819ddce0c0c75bef554f /hosts/common/security.nix | |
| parent | a276cdbfa83425423c096d8049e6e29770018e31 (diff) | |
start using nixpkgs-fmt
Diffstat (limited to 'hosts/common/security.nix')
| -rw-r--r-- | hosts/common/security.nix | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/hosts/common/security.nix b/hosts/common/security.nix index ed9be36..d150236 100644 --- a/hosts/common/security.nix +++ b/hosts/common/security.nix @@ -1,28 +1,28 @@ -{wsl, ...}: { - security = { - apparmor.enable = !wsl; - audit.enable = !wsl; - auditd.enable = !wsl; - rtkit.enable = true; - 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"]; - } - ]; - }; - polkit.enable = true; - }; +{ wsl, ... }: { + security = { + apparmor.enable = !wsl; + audit.enable = !wsl; + auditd.enable = !wsl; + rtkit.enable = true; + 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" ]; + } + ]; + }; + polkit.enable = true; + }; } |
