summaryrefslogtreecommitdiff
path: root/modules/users/jerry.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2024-11-08 22:33:01 -0700
committerDevin Finlinson <devin.finlinson@pm.me>2024-11-08 22:33:01 -0700
commit6a22f44a9a1a2dea02d7ff31b6ab8121c25b5cf1 (patch)
tree2afc1d96b7472cfe9dcf7833865164d8f2457979 /modules/users/jerry.nix
parent05ecc53afd467516ca781fc549d0110a44a85da9 (diff)
parentce3ec8ad7367ce44be14a4f04f981b9aab1cd56b (diff)
Merge branch 'master' of ssh://bosco:/srv/git/.flake
Diffstat (limited to 'modules/users/jerry.nix')
-rw-r--r--modules/users/jerry.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/users/jerry.nix b/modules/users/jerry.nix
new file mode 100644
index 0000000..b9f8b95
--- /dev/null
+++ b/modules/users/jerry.nix
@@ -0,0 +1,22 @@
+{config, pkgs, lib, ... }: {
+
+ # Define a user account. Don't forget to set a password with ‘passwd’.
+ users = {
+
+ users.jerry = {
+ isNormalUser = true;
+ description = "Jerry Finlinson";
+ extraGroups = [ "input" "wireshark" ]; # (wheel) Enable ‘sudo’ for the user.
+ shell = pkgs.nushell;
+ };
+ };
+
+ security.pam = {
+ sshAgentAuth.enable = true;
+ # services.sudo.sshAgentAuth = true;
+ };
+ # I can't think of a better spot to put this rn.
+ services.openssh = {
+ ports = [ 22 2200 ]; # needed because isp blocks ssh over 22
+ };
+}