From caf76e8c162565aa490c800f7201188da415674e Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 2 Jan 2023 15:35:39 +1000 Subject: [PATCH] README.md: community builder -> roles/builder/README.MD --- README.md | 15 +-------------- roles/builder/README.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 roles/builder/README.md diff --git a/README.md b/README.md index 2f331f2..5f91604 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,7 @@ Welcome to the Nix Community infrastructure project. This project holds all the ## Community builder -We also provide one x86 hetzner build machine as a public remote builder for the nix community. If you want access read the security guide lines on [aarch64-build-box](https://github.com/nix-community/aarch64-build-box). Than add your username to `roles/builder/users.nix`. Don't keep any important data in your home! We will regularly delete `/home` without further notice. - -### Using your NixOS home-manager configuration on the hosts - -If you happen to have your NixOS & home-manager configurations intertwined but you'd like your familiar environment on our infrastructure you can evaluate `pkgs.writeShellScript "hm-activate" config.systemd.services.home-manager-<yourusername>.serviceConfig.ExecStart` from your NixOS configuration, and send this derivation to be realized remotely: (in case you aren't a Nix trusted user) -``` console -# somehow get the .drv of the above expression into $path -$ nix copy --to ssh://build01.nix-community.org --derivation $path -$ ssh build01.nix-community.org -$ nix-store -r $path -$ $path -``` - -*(My [implementation](https://github.com/ckiee/nixfiles/blob/aac57f56e417e31f00fd495d8a30fb399ecbc19b/deploy/hm-only.nix#L10) of [this](https://github.com/ckiee/nixfiles/blob/aac57f56e417e31f00fd495d8a30fb399ecbc19b/bin/c#L92-L95) ~ckie)* +We also provide one x86 hetzner build machine as a public remote builder for the nix community, see [here](roles/builder/README.MD) for more information. ## Hydra diff --git a/roles/builder/README.md b/roles/builder/README.md new file mode 100644 index 0000000..963def7 --- /dev/null +++ b/roles/builder/README.md @@ -0,0 +1,16 @@ +## Community builder + +If you want access read the security guide lines on [aarch64-build-box](https://github.com/nix-community/aarch64-build-box). Than add your username to [`roles/builder/users.nix`](users.nix). Don't keep any important data in your home! We will regularly delete `/home` without further notice. + +### Using your NixOS home-manager configuration on the hosts + +If you happen to have your NixOS & home-manager configurations intertwined but you'd like your familiar environment on our infrastructure you can evaluate `pkgs.writeShellScript "hm-activate" config.systemd.services.home-manager-<yourusername>.serviceConfig.ExecStart` from your NixOS configuration, and send this derivation to be realized remotely: (in case you aren't a Nix trusted user) +``` console +# somehow get the .drv of the above expression into $path +$ nix copy --to ssh://build01.nix-community.org --derivation $path +$ ssh build01.nix-community.org +$ nix-store -r $path +$ $path +``` + +*(My [implementation](https://github.com/ckiee/nixfiles/blob/aac57f56e417e31f00fd495d8a30fb399ecbc19b/deploy/hm-only.nix#L10) of [this](https://github.com/ckiee/nixfiles/blob/aac57f56e417e31f00fd495d8a30fb399ecbc19b/bin/c#L92-L95) ~ckie)*