Does this even work??
This commit is contained in:
parent
7aa39a1110
commit
4e145a70d9
5 changed files with 19 additions and 40 deletions
10
flake.nix
10
flake.nix
|
@ -60,9 +60,17 @@
|
|||
{
|
||||
colmena = {
|
||||
meta = {
|
||||
# Info
|
||||
description = "The Bun Hive";
|
||||
name = "bunhive";
|
||||
|
||||
# NixPKGs
|
||||
nixpkgs = import stable { system = "x86_64-linux"; };
|
||||
specialArgs = inputs;
|
||||
|
||||
# Remote builds
|
||||
machinesFile = ./machines.txt;
|
||||
|
||||
# Use a different Nixpkgs import on some systems
|
||||
nodeNixpkgs.jupiter = import unstable { system = "x86_64-linux"; };
|
||||
};
|
||||
|
@ -81,8 +89,8 @@
|
|||
# Servers
|
||||
midas.imports = [ ./hosts/midas ];
|
||||
kitty.imports = [ ./hosts/kitty ];
|
||||
elder.imports = [ ./hosts/elder ];
|
||||
detritus.imports = [ ./hosts/detritus ];
|
||||
elder.imports = [ ./hosts/elder ];
|
||||
prophet.imports = [ ./hosts/prophet ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,10 +14,7 @@
|
|||
stateVersion = "24.05";
|
||||
};
|
||||
|
||||
deployment = {
|
||||
buildOnTarget = true;
|
||||
targetHost = "42f:2737:2aed:4dee:cbe4:3c73:1918:ad9b";
|
||||
};
|
||||
deployment.targetHost = "42f:2737:2aed:4dee:cbe4:3c73:1918:ad9b";
|
||||
|
||||
networking.hostId = "97a21a38";
|
||||
}
|
||||
|
|
5
machines.txt
Normal file
5
machines.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
ssh://midas x86_64-linux
|
||||
ssh://kitty x86_64-linux
|
||||
ssh://detritus x86_64-linux
|
||||
ssh://elder x86_64-linux
|
||||
ssh://prophet aarch64-linux
|
|
@ -2,7 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./channels
|
||||
./distributed
|
||||
./gc
|
||||
./unfree
|
||||
];
|
||||
|
@ -10,12 +9,15 @@
|
|||
nix = {
|
||||
package = pkgs.lix;
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
auto-optimise-store = true;
|
||||
max-jobs = 0;
|
||||
trusted-users = [ "root" ];
|
||||
};
|
||||
distributedBuilds = true;
|
||||
};
|
||||
|
||||
# Use a newer implementation of nixos-rebuild
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
{ nodes, ... }:
|
||||
{
|
||||
nix = {
|
||||
settings = {
|
||||
max-jobs = 0;
|
||||
trusted-users = [ "root" ];
|
||||
};
|
||||
|
||||
distributedBuilds = true;
|
||||
buildMachines = with nodes; [
|
||||
{
|
||||
hostName = midas.config.deployment.targetHost;
|
||||
system = midas.config.nixpkgs.localSystem.system;
|
||||
}
|
||||
{
|
||||
hostName = kitty.config.deployment.targetHost;
|
||||
system = kitty.config.nixpkgs.localSystem.system;
|
||||
}
|
||||
{
|
||||
hostName = prophet.config.deployment.targetHost;
|
||||
system = prophet.config.nixpkgs.localSystem.system;
|
||||
}
|
||||
{
|
||||
hostName = detritus.config.deployment.targetHost;
|
||||
system = detritus.config.nixpkgs.localSystem.system;
|
||||
}
|
||||
{
|
||||
hostName = elder.config.deployment.targetHost;
|
||||
system = elder.config.nixpkgs.localSystem.system;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue