remote builder janitor

This commit is contained in:
Sridhar Ratnakumar 2025-10-20 21:34:56 -04:00
parent 4697a3c154
commit 3a116c299e
4 changed files with 8 additions and 10 deletions

View file

@ -17,6 +17,10 @@ in
home-manager.sharedModules = [
"${homeMod}/all/vira.nix"
# (self + /modules/home/all/dropbox.nix)
# Remote builders
"${homeMod}/all/buildMachines"
"${homeMod}/all/buildMachines/sincereintent.nix"
];
nix.settings.sandbox = "relaxed";

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
nix = {
package = pkgs.nix;
package = lib.mkDefault pkgs.nix;
enable = true;
distributedBuilds = true;
};

View file

@ -15,11 +15,11 @@
mandatoryFeatures = [ ];
# We need this!
sshKey = "/home/srid/.ssh/id_ed25519";
sshKey = "/home/srid/.ssh/nix-remote-builder";
# This too!
# Run on the remote machine:
# nix run nixpkgs#base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub
# , base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU82S2Q2OG5LdFlqNVhTaWgveVlteE96M2o0WUdMUGQxUTE1cTF0dUdsZWUgCg==";
}
];

View file

@ -1,10 +1,4 @@
{ pkgs, lib, ... }:
{
# Nix configuration is managed globally by nix-darwin.
# Prevent $HOME nix.conf from disrespecting it.
home.file.".config/nix/nix.conf".text = "";
# Global session path for all shells
# Normally, we do this on macOS only. And it is not necessary on NixOS. Yet,
# non-NixOS Linux will need it (when using the official Nix installer).