clan-infra/modules/admins.nix

52 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-09-06 09:21:34 +00:00
let
admins = builtins.fromJSON (builtins.readFile ../targets/admins/users.json);
in
{
users.users = {
mic92 = {
isNormalUser = true;
2023-09-12 10:36:30 +00:00
home = "/home/mic92";
2023-09-06 09:21:34 +00:00
extraGroups = [ "wheel" ];
shell = "/run/current-system/sw/bin/zsh";
uid = 1000;
openssh.authorizedKeys.keys = [ admins.mic92 ];
};
lassulus = {
isNormalUser = true;
home = "/home/lassulus";
extraGroups = [ "wheel" ];
shell = "/run/current-system/sw/bin/zsh";
uid = 1001;
openssh.authorizedKeys.keys = [ admins.lassulus ];
};
dave = {
isNormalUser = true;
home = "/home/dave";
extraGroups = [ "wheel" ];
shell = "/run/current-system/sw/bin/fish";
uid = 1002;
openssh.authorizedKeys.keys = [ admins.dave ];
};
2023-09-12 10:36:30 +00:00
qubasa = {
isNormalUser = true;
home = "/home/qubasa";
extraGroups = [ "wheel" ];
shell = "/run/current-system/sw/bin/zsh";
uid = 1003;
openssh.authorizedKeys.keys = [ admins.qubasa ];
};
2023-11-16 14:53:53 +00:00
kenji = {
isNormalUser = true;
home = "/home/kenji";
extraGroups = [ "wheel" ];
shell = "/run/current-system/sw/bin/zsh";
uid = 1004;
2024-02-09 12:01:04 +00:00
openssh.authorizedKeys.keys = [ admins.kenji admins.kenji-remote ];
2023-11-16 14:53:53 +00:00
};
2023-09-06 09:21:34 +00:00
root.openssh.authorizedKeys.keys = builtins.attrValues admins;
};
security.sudo.wheelNeedsPassword = false;
}