raito-shared-public-infra/modules/users/friends.nix

29 lines
721 B
Nix
Raw Normal View History

2023-08-17 21:37:18 +00:00
{ ... }:
let
trustedFriendGroups = [
"production-hydra-db"
];
in
{
2023-08-16 13:22:54 +00:00
users.users = {
ninjatrappeur = {
isNormalUser = true;
home = "/home/ninjatrappeur";
shell = "/run/current-system/sw/bin/zsh";
uid = 2000;
2023-08-17 21:37:18 +00:00
extraGroups = trustedFriendGroups;
2023-08-16 13:22:54 +00:00
openssh.authorizedKeys.keyFiles = [ ./keys/ninjatrappeur.keys ];
};
2023-08-17 21:37:18 +00:00
linus = {
isNormalUser = true;
home = "/home/linus";
shell = "/run/current-system/sw/bin/zsh";
uid = 2001;
2023-09-18 07:59:14 +00:00
# Raito: I allowed linus to be root to get some stuff done
# on behalf of me.
extraGroups = [ "wheel" ] ++ trustedFriendGroups;
2023-08-17 21:37:18 +00:00
openssh.authorizedKeys.keyFiles = [ ./keys/linus.keys ];
};
2023-08-16 13:22:54 +00:00
};
}