Set up Nix build server

This commit is contained in:
Agatha Lovelace 2024-11-22 17:28:12 +01:00
parent d1d94f9c24
commit 9300a07f5b
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
3 changed files with 23 additions and 1 deletions

17
common/remote-builds.nix Normal file
View File

@ -0,0 +1,17 @@
{
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "tears";
systems = [
"x86_64-linux"
"i686-linux"
];
supportedFeatures = [ "big-parallel" ];
maxJobs = 4;
sshUser = "root";
sshKey = "/Users/agatha/Projects/nix-infra/secrets/id_ed25519-nix-builder";
}
];
}

View File

@ -2,6 +2,8 @@
{
imports = [
../../common/home_manager/common.nix
../../common/remote-builds.nix
../../common/fragments/graphical/barebones.nix
../../common/fragments/graphical/iosevka.nix
];
@ -17,6 +19,7 @@
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
trusted-users = [ "@admin" ];
};
# Needed for the nix-darwin environment even if zsh is not used.
@ -40,4 +43,6 @@
iosevka
siji
];
system.stateVersion = 1;
}

View File

@ -2,7 +2,7 @@
imports = [
./hardware-configuration.nix
../../common/fragments/graphical
../../common/fragments/yubikey.nix
../../common/remote-builds.nix
../../common/home_manager/common.nix
];