2023-09-18 15:32:43 +02:00
|
|
|
# Import nixpkgs with niv. https://dataswamp.org/~solene/2022-01-12-nix-niv-shell.html#_Create_a_shell.nix_file
|
2023-09-17 16:59:42 +02:00
|
|
|
let
|
|
|
|
sources = import ./nix/sources.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# Colmena config: https://colmena.cli.rs/0.4/tutorial/index.html#basic-configuration
|
|
|
|
# Colmena local node: https://colmena.cli.rs/0.4/features/apply-local.html
|
|
|
|
|
|
|
|
meta = {
|
2023-09-18 16:42:13 +02:00
|
|
|
# Pin the Nixpkgs version with niv.
|
2023-09-17 16:59:42 +02:00
|
|
|
# Note: You can also override Nixpkgs by node.
|
|
|
|
nixpkgs = import sources.nixpkgs {};
|
|
|
|
};
|
|
|
|
|
|
|
|
defaults = { ... }: {
|
|
|
|
# This module will be imported by all hosts.
|
|
|
|
};
|
|
|
|
|
|
|
|
#
|
|
|
|
# LOCAL DEPLOYMENT
|
|
|
|
#
|
|
|
|
|
|
|
|
yodaTux = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# Local deployment.
|
|
|
|
allowLocalDeployment = true;
|
|
|
|
targetHost = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
yodaTab = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# Local deployment.
|
|
|
|
allowLocalDeployment = true;
|
|
|
|
targetHost = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-06 16:48:22 +01:00
|
|
|
yodaGaming = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# Local deployment.
|
|
|
|
allowLocalDeployment = true;
|
|
|
|
targetHost = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-17 16:59:42 +02:00
|
|
|
#
|
|
|
|
# SSH DEPLOYMENT
|
|
|
|
#
|
|
|
|
|
2023-11-22 15:14:59 +01:00
|
|
|
remoteTab = { name, nodes, ... }: {
|
2023-09-21 13:40:08 +02:00
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/yodaTab/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# SSH deployment.
|
2023-12-25 11:45:38 +01:00
|
|
|
targetHost = "192.168.178.53";
|
2023-09-21 13:40:08 +02:00
|
|
|
targetPort = 22;
|
|
|
|
|
2023-09-27 20:12:49 +02:00
|
|
|
tags = [];
|
2023-09-21 13:40:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-06 20:43:20 +01:00
|
|
|
# TODO: This is broken. Gives me BIOS error A9, requires BIOS reset to boot again.
|
|
|
|
# remoteGaming = { name, nodes, ... }: {
|
|
|
|
# # Import the per-host configuration file.
|
|
|
|
# imports = [ ./hosts/yodaGaming/configuration.nix ];
|
|
|
|
#
|
|
|
|
# deployment = {
|
|
|
|
# # SSH deployment.
|
|
|
|
# targetHost = "192.168.178.54";
|
|
|
|
# targetPort = 22;
|
|
|
|
#
|
|
|
|
# tags = [];
|
|
|
|
# };
|
|
|
|
# };
|
2024-02-06 16:48:22 +01:00
|
|
|
|
2023-09-17 16:59:42 +02:00
|
|
|
yodaYoga = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# SSH deployment.
|
2024-01-06 21:51:39 +01:00
|
|
|
targetHost = "yodayoga.p1st.de";
|
2023-09-17 16:59:42 +02:00
|
|
|
targetPort = 2224;
|
|
|
|
|
2023-09-21 13:40:08 +02:00
|
|
|
tags = [ "server" ];
|
2023-09-17 16:59:42 +02:00
|
|
|
};
|
|
|
|
};
|
2023-09-26 18:51:17 +02:00
|
|
|
|
2023-11-03 16:12:39 +01:00
|
|
|
yodaHedgehog = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# SSH deployment.
|
2024-01-06 21:51:39 +01:00
|
|
|
targetHost = "yodahedgehog.p1st.de";
|
2023-11-03 16:12:39 +01:00
|
|
|
targetPort = 2226;
|
|
|
|
|
|
|
|
tags = [ "server" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-26 18:51:17 +02:00
|
|
|
yodaNas = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# SSH deployment.
|
2024-01-06 21:51:39 +01:00
|
|
|
targetHost = "yodanas.p1st.de";
|
2023-09-26 18:51:17 +02:00
|
|
|
targetPort = 2222;
|
|
|
|
|
|
|
|
tags = [ "server" ];
|
|
|
|
};
|
|
|
|
};
|
2023-09-17 16:59:42 +02:00
|
|
|
}
|