nix-git/hive.nix

61 lines
1.3 KiB
Nix

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 = {
# Override to pin the Nixpkgs version.
# 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" ];
};
};
}