feat(servivi): add nixremote user for remote builds
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2023-12-29 16:51:52 -05:00
parent 7963706517
commit d1d3f4fd17
2 changed files with 26 additions and 12 deletions

View file

@ -34,7 +34,7 @@
warn-dirty = false; warn-dirty = false;
# remote building # remote building
trusted-users = ["matt"]; trusted-users = ["matt" "nixremote"];
}; };
}; };

View file

@ -16,7 +16,8 @@
hostName = "servivi"; hostName = "servivi";
}; };
users.users.${config.vars.user} = { users.users = {
${config.vars.user} = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
"wheel" "wheel"
@ -29,6 +30,19 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
]; ];
}; };
nixremote = {
isNormalUser = true;
createHome = true;
home = "/var/lib/nixremote";
homeMode = "500";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGOujvC5JLnyjqD1bzl/H0256Gxw/biu7spIHy3YJiDL root@oksys"
];
};
};
home-manager.users.${config.vars.user} = { home-manager.users.${config.vars.user} = {
imports = []; imports = [];