This commit is contained in:
2023-08-26 07:18:27 +03:00
parent 1baec30bc4
commit 1db9253ae6
18 changed files with 255 additions and 126 deletions

View File

@@ -118,6 +118,25 @@
specialArgs = {inherit myData;} // inputs;
};
nixosConfigurations.fra1-a = nixpkgs.lib.nixosSystem {
modules = [
./hosts/fra1-a/configuration.nix
./modules
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{
age.secrets.motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;
age.secrets.root-passwd-hash.file = ./secrets/root_passwd_hash.age;
age.secrets.sasl-passwd.file = ./secrets/postfix_sasl_passwd.age;
}
];
specialArgs = {inherit myData;} // inputs;
};
deploy.nodes.hel1-a = {
hostname = myData.hosts."hel1-a.servers.jakst".jakstIP;
profiles = {
@@ -154,6 +173,18 @@
};
};
deploy.nodes.fra1-a = {
hostname = myData.hosts."fra1-a.servers.jakst".jakstIP;
profiles = {
system = {
sshUser = "motiejus";
path =
deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.fra1-a;
user = "root";
};
};
};
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
}
// flake-utils.lib.eachDefaultSystem (system: let