infra/deployment.nix

53 lines
938 B
Nix
Raw Normal View History

with builtins;
let
secrets = import ./secrets.nix;
# Copied from <nixpkgs/lib>
removeSuffix = suffix: str:
let
sufLen = stringLength suffix;
sLen = stringLength str;
in
if
sufLen <= sLen && suffix == substring (sLen - sufLen) sufLen str
then
substring 0 (sLen - sufLen) str
else
str;
2020-01-22 12:37:13 +01:00
in
{
network.description = "nix-community infra";
2021-09-25 22:35:51 +02:00
build01 = { ... }: {
imports = [
./build01/configuration.nix
];
2021-04-21 08:49:18 +02:00
2021-09-25 22:35:51 +02:00
deployment.targetHost = "94.130.143.84";
};
2021-04-21 08:49:18 +02:00
2021-09-25 22:35:51 +02:00
build02 = { ... }: {
imports = [
./build02/configuration.nix
];
2021-05-05 08:29:47 +02:00
2021-09-25 22:35:51 +02:00
deployment.targetHost = "95.217.109.189";
};
2021-05-05 08:29:47 +02:00
2021-09-25 22:35:51 +02:00
build03 = { ... }: {
imports = [
./build03/configuration.nix
];
2021-05-05 08:29:47 +02:00
2021-09-25 22:35:51 +02:00
deployment.targetHost = "build03.nix-community.org";
};
2021-08-17 20:31:59 +02:00
2021-09-25 22:35:51 +02:00
build04 = { ... }: {
imports = [
./build04/configuration.nix
];
deployment.targetHost = "158.101.223.107";
};
}