From e93a2fc48f229f7b577dad6080e3258b677e7131 Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 13 Jan 2021 21:13:24 +0100 Subject: [PATCH] feat(ops/nixos/whitby): add sterni user Change-Id: Ia6790913ea2777a9d4ca89830436623766991c13 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2368 Tested-by: BuildkiteCI Reviewed-by: tazjin --- ops/nixos/whitby/default.nix | 6 ++++++ users/sterni/keys.nix | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 users/sterni/keys.nix diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index 3502b8aa2..ee2c154c8 100644 --- a/ops/nixos/whitby/default.nix +++ b/ops/nixos/whitby/default.nix @@ -442,6 +442,12 @@ in lib.fix(self: { openssh.authorizedKeys.keys = depot.users.firefly.keys.whitby; }; + users.sterni = { + isNormalUser = true; + extraGroups = [ "git" ]; + openssh.authorizedKeys.keys = depot.users.sterni.keys.all; + }; + # Set up a user & group for git shenanigans groups.git = {}; users.git = { diff --git a/users/sterni/keys.nix b/users/sterni/keys.nix new file mode 100644 index 000000000..815f62ee0 --- /dev/null +++ b/users/sterni/keys.nix @@ -0,0 +1,7 @@ +{ ... }: + +{ + all = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJk+KvgvI2oJTppMASNUfMcMkA2G5ZNt+HnWDzaXKLlo lukas@wolfgang" + ]; +}