From aaef0b57ee3be80ea66b1f534e4aea3aa81998f3 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Fri, 29 Dec 2023 17:54:33 +0100 Subject: [PATCH] added niklas as friend --- modules/users/admins.nix | 2 +- modules/users/friends.nix | 9 +++++++++ modules/users/keys/niklas.keys | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 modules/users/keys/niklas.keys diff --git a/modules/users/admins.nix b/modules/users/admins.nix index 877eb09..8e5363a 100644 --- a/modules/users/admins.nix +++ b/modules/users/admins.nix @@ -66,6 +66,6 @@ in }; }; - nix.settings.trusted-users = [ "raito" "luj" "gdd" "akechi" "tomate" ]; + nix.settings.trusted-users = [ "raito" "luj" "gdd" "akechi" "tomate" "fuckuniklas" ]; }; } diff --git a/modules/users/friends.nix b/modules/users/friends.nix index afb5437..6923709 100644 --- a/modules/users/friends.nix +++ b/modules/users/friends.nix @@ -24,5 +24,14 @@ in extraGroups = [ "wheel" ] ++ trustedFriendGroups; openssh.authorizedKeys.keyFiles = [ ./keys/linus.keys ]; }; + fuckuniklas = { + isNormalUser = true; + home = "/home/fuckuniklas"; + shell = "/run/current-system/sw/bin/zsh"; + uid = 2002; + extraGroups = trustedFriendGroups; + openssh.authorizedKeys.keyFiles = [ ./keys/niklas.keys ]; + }; + }; } diff --git a/modules/users/keys/niklas.keys b/modules/users/keys/niklas.keys new file mode 100644 index 0000000..69b674c --- /dev/null +++ b/modules/users/keys/niklas.keys @@ -0,0 +1 @@ +sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAINHd1ay1FSTHZzE+3XCdUiS5efFmJ9GUvx4+7F5uXVtMAAAABHNzaDo= nikstur