nixcfg/systems/nixbuild.nix
Harald Hoyer cd86d39ec1 chore(flakes): update Flake lockfile and configs
- Updated multiple Flake lockfile entries to the latest revisions for improved consistency with upstream changes.
- Removed redundant `sshKey` fields from builder configurations in `nixbuild.nix`.
- Added `Nix` path initialization for fish shell SSH sessions and refactored mouse bindings in `default.nix`.
2025-11-13 11:36:46 +01:00

48 lines
1 KiB
Nix

{ lib, pkgs, ... }:
with lib.metacfg;
{
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "m4";
system = "aarch64-darwin";
maxJobs = 4;
speedFactor = 3;
sshUser = "harald";
}
{
hostName = "rialo";
system = "aarch64-darwin";
maxJobs = 4;
speedFactor = 3;
sshUser = "harald";
}
{
hostName = "sgx";
system = "x86_64-linux";
maxJobs = 4;
speedFactor = 1;
sshUser = "harald";
}
];
nix.settings = {
substituters = [
"https://cache.nixos.org"
"ssh-ng://harald@m4?ssh-key=/etc/ssh/nix-builder-key"
"ssh-ng://harald@rialo?ssh-key=/etc/ssh/nix-builder-key"
"ssh-ng://harald@sgx?ssh-key=/etc/ssh/nix-builder-key"
];
builders-use-substitutes = true;
};
# Ensure Nix is in PATH for SSH sessions
programs.fish.shellInit = ''
if [ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
fi
'';
}