From 4fd99eae63ef0ea8e6f23ac5e152352cb0fc1bf0 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 9 Aug 2024 12:41:32 -0600 Subject: [PATCH] [NixOS] Add interview user --- nixos/keys.nix | 3 +++ nixos/users.nix | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/nixos/keys.nix b/nixos/keys.nix index 92eb35cd..f6f2b7be 100644 --- a/nixos/keys.nix +++ b/nixos/keys.nix @@ -55,4 +55,7 @@ rec { benKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAJ6lD0c+frh2vzQjvsrsmJpwM1ovaY59m5NNPml5G+E benjamin.j.corner@gmail.com" ]; + interviewKeys = [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDr3Rim92K0aNWh2wCZjZMj927H6NZMvw+Jg5giVEklv/eeXlJn81xm9kFsqWOmN0IyS4X+2V2G/43t4C+REmzMKjkzTu9u6SJi+pC3jdJRm80sJCz2LBdRjPaY3CEubiUdxWvjisE8wUI1YuxxdegJpcemvhZXBfDU+DOqNEtF9KiPhXFMOoGU18k5AqFatdmE4z0H158cc6rCxdEiM8s+H6AJDA+xZSn9BPSx2I/ySRapoN0qJDloV19795ggnegBOjNuGejnKI0RZ8CyTcf1945Yi8/O/i/IChRlxiArjgAbC2DItkQig8YyQYz6WlKE9bwruMqe+8mgBAfuQXH8yTADwD1156VCRGoYAorAz4CLm73oGKtx4pa6WFsklWAIK1UEAhuLT6FKaJ/mmfKxcqdHxj+29FNo3d2Pam/ecFd0aERi5TExH5GKZr+LI7yKQmgk6laiR0n1wZuDwlNN7+69GH+ScxRngGCkc3RdTToqXzEaN3B6EyiAN/sAUgs= finn@LAPTOP-JI7BSSRJ" + ]; } diff --git a/nixos/users.nix b/nixos/users.nix index 4048d2e5..b3851037 100644 --- a/nixos/users.nix +++ b/nixos/users.nix @@ -94,6 +94,11 @@ in name = "railbird"; openssh.authorizedKeys.keys = inputs.railbird-secrets.keys.railbirdDevKeys; }; + interview = userDefaults // { + inherit extraGroups; + name = "interview"; + openssh.authorizedKeys.keys = interviewKeys ++ inputs.railbird-secrets.keys.railbirdDevKeys; + }; }; nix.sshServe = {