summaryrefslogtreecommitdiff
path: root/modules/users
diff options
context:
space:
mode:
Diffstat (limited to 'modules/users')
-rw-r--r--modules/users/defin.nix2
-rw-r--r--modules/users/jerry.nix22
2 files changed, 23 insertions, 1 deletions
diff --git a/modules/users/defin.nix b/modules/users/defin.nix
index 24863d6..8931187 100644
--- a/modules/users/defin.nix
+++ b/modules/users/defin.nix
@@ -7,7 +7,7 @@
users.defin = {
isNormalUser = true;
description = "Devin Finlinson";
- extraGroups = [ "wheel" "builders" "video" "input" "docker" "dialout" "wireshark" "networkmanager" ]; # (wheel) Enable ‘sudo’ for the user.
+ extraGroups = [ "wheel" "builders" "video" "input" "docker" "dialout" "wireshark" "networkmanager" "libvirtd" ]; # (wheel) Enable ‘sudo’ for the user.
shell = pkgs.nushell;
hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0";
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
+ };
+}