refactor: add mail-01 to colmena
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
df16d13590
commit
9d5d5f447a
9 changed files with 90 additions and 148 deletions
30
flake.nix
30
flake.nix
|
|
@ -160,9 +160,6 @@
|
|||
};
|
||||
|
||||
# servers
|
||||
db-01 = hetzner.mkMachine "db-01" {
|
||||
ipv6Address = "2a01:4f8:c012:15d4::/64";
|
||||
};
|
||||
hosting-01 = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
|
|
@ -170,16 +167,6 @@
|
|||
./hosts/hosting-01
|
||||
];
|
||||
};
|
||||
hosting-02 = hetzner.mkMachine "hosting-02" {
|
||||
ipv6Address = "2a01:4f8:c013:7fc0::/64";
|
||||
};
|
||||
mail-01 = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./hosts/mail-01
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
colmenaHive =
|
||||
|
|
@ -200,6 +187,7 @@
|
|||
{
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.nixos-mailserver.nixosModules.mailserver
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
nixosModules.bandcamp-collection-downloader
|
||||
nixosModules.namespaced-vpn
|
||||
|
|
@ -212,12 +200,16 @@
|
|||
machineConfig
|
||||
];
|
||||
|
||||
deployment = {
|
||||
targetHost = "${name}.escapeangle.com";
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
buildOnTarget = true;
|
||||
};
|
||||
deployment =
|
||||
let
|
||||
hostname = if name == "mail-01" then "mail" else name;
|
||||
in
|
||||
{
|
||||
targetHost = "${hostname}.escapeangle.com";
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
buildOnTarget = true;
|
||||
};
|
||||
}
|
||||
);
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue