all repos — nixfiles @ 9cbe0c02235170f810498aa36cbb69d8c52b3649

System and user configuration, managed by nix and home-manager

system/roles/nix-remote-builder.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  ...
}:
{
  nix.settings.trusted-users = [ "nixremote" ];
  users.users.nixremote = {
    shell = "/bin/sh";
    isNormalUser = true;
    home = "/var/lib/nixremote/";
    createHome = true;
    openssh.authorizedKeys.keys = [
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPKGzXGgFm/4Da2KNl1wb7TC2YOu/baP/2eFVBaJY0Wq root@marvin"
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIFhZ8cbSTN/lkbBCDoGXjb2zxTmzWfZNnW1gCN9Z8jh root@smrk"
    ];
  };
}