From 372b35dffa756d8ef90381fe706dc4f0b298645c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 26 Mar 2021 20:58:55 +0100 Subject: feat(ops/nixos/whitby): add flokli user Change-Id: Ibdb5b498f8bbc837fffdb38cdf95499b279773aa Reviewed-on: https://cl.tvl.fyi/c/depot/+/2683 Reviewed-by: lukegb Tested-by: BuildkiteCI --- ops/nixos/whitby/default.nix | 6 ++++++ users/flokli/keys.nix | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 users/flokli/keys.nix diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index 1bbab47f7a4d..08643b261f9d 100644 --- a/ops/nixos/whitby/default.nix +++ b/ops/nixos/whitby/default.nix @@ -437,6 +437,12 @@ in lib.fix(self: { openssh.authorizedKeys.keys = depot.users.sterni.keys.all; }; + users.flokli = { + isNormalUser = true; + extraGroups = [ "git" ]; + openssh.authorizedKeys.keys = depot.users.flokli.keys.all; + }; + # Set up a user & group for git shenanigans groups.git = {}; users.git = { diff --git a/users/flokli/keys.nix b/users/flokli/keys.nix new file mode 100644 index 000000000000..790c9862f824 --- /dev/null +++ b/users/flokli/keys.nix @@ -0,0 +1,7 @@ +{ ... }: + +{ + all = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTVTXOutUZZjXLB0lUSgeKcSY/8mxKkC0ingGK1whD2 flokli" + ]; +} -- cgit 1.4.1