diff options
| author | Fuwn <[email protected]> | 2024-10-03 00:37:39 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-03 00:37:39 -0700 |
| commit | 432aea8ecba1ee208521f4cea42be180dcbd27e1 (patch) | |
| tree | 1827da1d8bdc35a213b0a51fac0d071df80970a3 /modules/pc | |
| parent | audio: logging modules (diff) | |
| download | nixos-config-432aea8ecba1ee208521f4cea42be180dcbd27e1.tar.xz nixos-config-432aea8ecba1ee208521f4cea42be180dcbd27e1.zip | |
modules: reformat
Diffstat (limited to 'modules/pc')
| -rw-r--r-- | modules/pc/security/pam.nix | 76 |
1 files changed, 37 insertions, 39 deletions
diff --git a/modules/pc/security/pam.nix b/modules/pc/security/pam.nix index b7eb426..e800071 100644 --- a/modules/pc/security/pam.nix +++ b/modules/pc/security/pam.nix @@ -1,50 +1,48 @@ { - security = { - pam = { - loginLimits = [ - { - domain = "@wheel"; - item = "nofile"; - type = "soft"; - value = "524288"; - } - { - domain = "@wheel"; - item = "nofile"; - type = "hard"; - value = "1048576"; - } - ]; + security.pam = { + loginLimits = [ + { + domain = "@wheel"; + item = "nofile"; + type = "soft"; + value = "524288"; + } + { + domain = "@wheel"; + item = "nofile"; + type = "hard"; + value = "1048576"; + } + ]; - services = - let - ttyAudit = { - enable = true; - enablePattern = "*"; - }; - in - { - swaylock.text = "auth include login"; - gtklock.text = "auth include login"; + services = + let + ttyAudit = { + enable = true; + enablePattern = "*"; + }; + in + { + swaylock.text = "auth include login"; + gtklock.text = "auth include login"; - login = { - inherit ttyAudit; + login = { + inherit ttyAudit; - setLoginUid = true; - }; + setLoginUid = true; + }; - sshd = { - inherit ttyAudit; + sshd = { + inherit ttyAudit; - setLoginUid = true; - }; + setLoginUid = true; + }; - sudo = { - inherit ttyAudit; + sudo = { + inherit ttyAudit; - setLoginUid = true; - }; + setLoginUid = true; }; - }; + }; }; } |