feat: use deploy-rs overlay
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
ebc16af1a0
commit
7d306e67fa
1 changed files with 16 additions and 15 deletions
27
flake.nix
27
flake.nix
|
|
@ -70,6 +70,16 @@
|
|||
];
|
||||
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
|
||||
deploy-rs = inputs.deploy-rs // {
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
(inputs.deploy-rs.packages.${system} or { })
|
||||
// {
|
||||
default = nixpkgs.legacyPackages.${system}.deploy-rs;
|
||||
}
|
||||
);
|
||||
};
|
||||
in
|
||||
{
|
||||
# custom pkgs
|
||||
|
|
@ -148,22 +158,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
deploy.nodes = {
|
||||
db-01 = {
|
||||
hostname = "db-01.escapeangle.com";
|
||||
deploy.nodes = nixpkgs.lib.mapAttrs (name: config: {
|
||||
hostname = "${name}.escapeangle.com";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.db-01;
|
||||
};
|
||||
};
|
||||
hosting-02 = {
|
||||
hostname = "hosting-02.escapeangle.com";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.hosting-02;
|
||||
};
|
||||
};
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos config;
|
||||
};
|
||||
}) { inherit (self.nixosConfigurations) db-01 hosting-02; };
|
||||
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue