51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{ ... }:
|
|
let
|
|
trustedFriendGroups = [
|
|
"production-hydra-db"
|
|
];
|
|
in
|
|
{
|
|
users.users = {
|
|
# Raito: unused since a while, it was made for working on the production database of Hydra.
|
|
ninjatrappeur = {
|
|
isNormalUser = true;
|
|
home = "/home/ninjatrappeur";
|
|
shell = "/run/current-system/sw/bin/zsh";
|
|
uid = 2000;
|
|
extraGroups = trustedFriendGroups;
|
|
expires = "2024-01-01";
|
|
openssh.authorizedKeys.keyFiles = [ ./keys/ninjatrappeur.keys ];
|
|
};
|
|
linus = {
|
|
isNormalUser = true;
|
|
home = "/home/linus";
|
|
shell = "/run/current-system/sw/bin/zsh";
|
|
uid = 2001;
|
|
# Raito: I allowed linus to be root to get some stuff done
|
|
# on behalf of me.
|
|
extraGroups = [ "wheel" ] ++ trustedFriendGroups;
|
|
openssh.authorizedKeys.keyFiles = [ ./keys/linus.keys ];
|
|
};
|
|
niklas = {
|
|
isNormalUser = true;
|
|
home = "/home/niklas";
|
|
shell = "/run/current-system/sw/bin/zsh";
|
|
uid = 2002;
|
|
extraGroups = trustedFriendGroups;
|
|
openssh.authorizedKeys.keyFiles = [ ./keys/niklas.keys ];
|
|
};
|
|
# Raito: Temporary account for flokli, disable when he's done with it.
|
|
flokli = {
|
|
isNormalUser = true;
|
|
home = "/home/flokli";
|
|
shell = "/run/current-system/sw/bin/zsh";
|
|
uid = 2003;
|
|
expires = "2024-02-01";
|
|
extraGroups = trustedFriendGroups;
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTVTXOutUZZjXLB0lUSgeKcSY/8mxKkC0ingGK1whD2 flokli"
|
|
];
|
|
};
|
|
};
|
|
}
|