summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2024-11-05 20:49:55 -0700
committerDevin Finlinson <devin.finlinson@pm.me>2024-11-05 20:49:55 -0700
commit6ff62a2b220a5bcbad12b5a60a8b61d6fdd0aeab (patch)
treeb2bdc604912447fdce4631e03f3b901921dd766b /modules
parent05a0c9efeb9d83ed24124c525fdfaf50e1951884 (diff)
add pop as user for work
Diffstat (limited to 'modules')
-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
+ };
+}