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 = {
|
colmena = {
|
||||||
meta = {
|
meta = {
|
||||||
|
# Info
|
||||||
|
description = "The Bun Hive";
|
||||||
|
name = "bunhive";
|
||||||
|
|
||||||
|
# NixPKGs
|
||||||
nixpkgs = import stable { system = "x86_64-linux"; };
|
nixpkgs = import stable { system = "x86_64-linux"; };
|
||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
|
|
||||||
|
# Remote builds
|
||||||
|
machinesFile = ./machines.txt;
|
||||||
|
|
||||||
# Use a different Nixpkgs import on some systems
|
# Use a different Nixpkgs import on some systems
|
||||||
nodeNixpkgs.jupiter = import unstable { system = "x86_64-linux"; };
|
nodeNixpkgs.jupiter = import unstable { system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
|
@ -81,8 +89,8 @@
|
||||||
# Servers
|
# Servers
|
||||||
midas.imports = [ ./hosts/midas ];
|
midas.imports = [ ./hosts/midas ];
|
||||||
kitty.imports = [ ./hosts/kitty ];
|
kitty.imports = [ ./hosts/kitty ];
|
||||||
elder.imports = [ ./hosts/elder ];
|
|
||||||
detritus.imports = [ ./hosts/detritus ];
|
detritus.imports = [ ./hosts/detritus ];
|
||||||
|
elder.imports = [ ./hosts/elder ];
|
||||||
prophet.imports = [ ./hosts/prophet ];
|
prophet.imports = [ ./hosts/prophet ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,10 +14,7 @@
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment = {
|
deployment.targetHost = "42f:2737:2aed:4dee:cbe4:3c73:1918:ad9b";
|
||||||
buildOnTarget = true;
|
|
||||||
targetHost = "42f:2737:2aed:4dee:cbe4:3c73:1918:ad9b";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostId = "97a21a38";
|
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 = [
|
imports = [
|
||||||
./channels
|
./channels
|
||||||
./distributed
|
|
||||||
./gc
|
./gc
|
||||||
./unfree
|
./unfree
|
||||||
];
|
];
|
||||||
|
@ -10,12 +9,15 @@
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.lix;
|
package = pkgs.lix;
|
||||||
settings = {
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
auto-optimise-store = true;
|
max-jobs = 0;
|
||||||
|
trusted-users = [ "root" ];
|
||||||
};
|
};
|
||||||
|
distributedBuilds = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use a newer implementation of nixos-rebuild
|
# 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