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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#
|
|
|
|
# SSH DEPLOYMENT
|
|
|
|
#
|
|
|
|
|
|
|
|
yodaYoga = { name, nodes, ... }: {
|
|
|
|
# Import the per-host configuration file.
|
|
|
|
imports = [ ./hosts/${name}/configuration.nix ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
# SSH deployment.
|
|
|
|
targetHost = "p1st.de";
|
|
|
|
targetPort = 2224;
|
|
|
|
|
|
|
|
# tags = [ "production" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|