diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2024-11-05 20:49:55 -0700 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2024-11-05 20:49:55 -0700 |
| commit | 6ff62a2b220a5bcbad12b5a60a8b61d6fdd0aeab (patch) | |
| tree | b2bdc604912447fdce4631e03f3b901921dd766b | |
| parent | 05a0c9efeb9d83ed24124c525fdfaf50e1951884 (diff) | |
add pop as user for work
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | modules/users/jerry.nix | 22 |
2 files changed, 23 insertions, 0 deletions
@@ -287,6 +287,7 @@ ./modules/users/defin.nix ./modules/users/root.nix + ./modules/users/jerry.nix home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; 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 + }; +} |
