diff --git a/common/users/default.nix b/common/users/default.nix new file mode 100644 index 0000000..9602472 --- /dev/null +++ b/common/users/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./qenya.nix + ./richard.nix + ]; +} \ No newline at end of file diff --git a/common/users/richard.nix b/common/users/richard.nix new file mode 100644 index 0000000..f910d93 --- /dev/null +++ b/common/users/richard.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: + +let keys = import ../../keys.nix; +in +{ + users.users.richard = { + isNormalUser = true; + home = "/home/richard"; + openssh.authorizedKeys.keys = keys.users.richard; + uid = 1002; + }; +} diff --git a/hive.nix b/hive.nix index 99e29cd..e930b29 100644 --- a/hive.nix +++ b/hive.nix @@ -28,7 +28,7 @@ in { ./common/ssh.nix ./common/sudo.nix ./common/utilities.nix - ./common/users/qenya.nix + ./common/users ]; }; diff --git a/keys.nix b/keys.nix index 57138d7..7573baf 100644 --- a/keys.nix +++ b/keys.nix @@ -9,5 +9,8 @@ qenya = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru" ]; + richard = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHAuYWPfYVKdjBY/gBMt2n11Seb+hMqjui1PQ6C4ph8i richard@tress" + ]; }; }