infra/modules/darwin/builder.nix

26 lines
646 B
Nix
Raw Normal View History

2023-05-16 18:58:13 +10:00
{
users.knownGroups = [ "nix" ];
users.knownUsers = [ "nix" ];
users.groups.nix = {
name = "nix";
gid = 8765;
description = "Group for remote build clients";
};
users.users.nix = {
name = "nix";
uid = 8765;
home = "/Users/nix";
createHome = true;
shell = "/bin/zsh";
description = "User for remote build clients";
2023-07-31 08:34:31 +10:00
# if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
2023-05-16 18:58:13 +10:00
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEmdo1x1QkRepZf7nSe+OdEWX+wOjkBLF70vX9F+xf68 builder"
];
};
nix.settings.trusted-users = [ "nix" ];
}