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,19 +16,33 @@
hostName = "servivi"; hostName = "servivi";
}; };
users.users.${config.vars.user} = { users.users = {
isNormalUser = true; ${config.vars.user} = {
extraGroups = [ isNormalUser = true;
"wheel" extraGroups = [
"adm" "wheel"
]; "adm"
];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto"
"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 = [];