From 7c1ab12829b55222b65fda2685d304ff8da9276b Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 17 Aug 2023 23:37:18 +0200 Subject: [PATCH] friends: init with linus --- modules/users/friends.nix | 17 ++++++++++++++++- modules/users/keys/linus.keys | 4 ++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/users/keys/linus.keys diff --git a/modules/users/friends.nix b/modules/users/friends.nix index 8d5ea3f..684353f 100644 --- a/modules/users/friends.nix +++ b/modules/users/friends.nix @@ -1,11 +1,26 @@ -{ ... }: { +{ ... }: +let + trustedFriendGroups = [ + "production-hydra-db" + ]; +in +{ users.users = { ninjatrappeur = { isNormalUser = true; home = "/home/ninjatrappeur"; shell = "/run/current-system/sw/bin/zsh"; uid = 2000; + extraGroups = trustedFriendGroups; openssh.authorizedKeys.keyFiles = [ ./keys/ninjatrappeur.keys ]; }; + linus = { + isNormalUser = true; + home = "/home/linus"; + shell = "/run/current-system/sw/bin/zsh"; + uid = 2001; + extraGroups = trustedFriendGroups; + openssh.authorizedKeys.keyFiles = [ ./keys/linus.keys ]; + }; }; } diff --git a/modules/users/keys/linus.keys b/modules/users/keys/linus.keys new file mode 100644 index 0000000..59249fb --- /dev/null +++ b/modules/users/keys/linus.keys @@ -0,0 +1,4 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDf7hGFfUHhtgYY0G/Dh9isjIxkvUjlAKAMvLIZs5NLXwEfnxDTVZW/ijfF2qDozAmYQHZqbeyhJX7YlO6nYjWRBxqBeqAMHhtu3PkiysSCCUymhJ2uDHUAox+BT8IGE3sCKYIXRdmSFoibgQad9AHsQ6OLoIaNgMV7rspdBcO/CjyCkHN440XhQKz/Sq2SyygI9Qkuz0qDdQOgIraVi//EXDAvij0QXlkmh+3xBJwEqt8Pe1KP9itwvGyzGX/aAheCBSf7HPcLzJUgcWymW6FL4AE0KqNVb8Q8ahaEM5UgbXUCauDON8H4OR1Zngszw128wklwxOr7q5gB++Ks1OQ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