diff options
| author | Fuwn <[email protected]> | 2025-05-25 03:52:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-25 03:52:14 -0700 |
| commit | 9b4ebaff664e8a8678cb58fc79e8898e1cca8c97 (patch) | |
| tree | 972c91c03ae8a23838c2e40a801b845a3da16b0f | |
| parent | Nara: Add Apple Watch authentication support for PAM (diff) | |
| download | nixos-config-9b4ebaff664e8a8678cb58fc79e8898e1cca8c97.tar.xz nixos-config-9b4ebaff664e8a8678cb58fc79e8898e1cca8c97.zip | |
Nara: Organise modules
| -rw-r--r-- | modules/mac/default.nix | 12 | ||||
| -rw-r--r-- | modules/mac/nix.nix | 6 | ||||
| -rw-r--r-- | modules/mac/security.nix | 6 |
3 files changed, 14 insertions, 10 deletions
diff --git a/modules/mac/default.nix b/modules/mac/default.nix index 0321f2e..fd9644b 100644 --- a/modules/mac/default.nix +++ b/modules/mac/default.nix @@ -1,16 +1,8 @@ { imports = [ ./programs + ./nix.nix + ./security.nix ./users.nix ]; - - security.pam.services.sudo_local = { - touchIdAuth = true; - watchIdAuth = true; - }; - - nix = { - enable = false; - settings.trusted-users = [ "@admin" ]; - }; } diff --git a/modules/mac/nix.nix b/modules/mac/nix.nix new file mode 100644 index 0000000..9391217 --- /dev/null +++ b/modules/mac/nix.nix @@ -0,0 +1,6 @@ +{ + nix = { + enable = false; + settings.trusted-users = [ "@admin" ]; + }; +} diff --git a/modules/mac/security.nix b/modules/mac/security.nix new file mode 100644 index 0000000..f338f40 --- /dev/null +++ b/modules/mac/security.nix @@ -0,0 +1,6 @@ +{ + security.pam.services.sudo_local = { + touchIdAuth = true; + watchIdAuth = true; + }; +} |