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;
|
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
|
in
|
||||||
{
|
{
|
||||||
# custom pkgs
|
# custom pkgs
|
||||||
|
|
@ -148,22 +158,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy.nodes = {
|
deploy.nodes = nixpkgs.lib.mapAttrs (name: config: {
|
||||||
db-01 = {
|
hostname = "${name}.escapeangle.com";
|
||||||
hostname = "db-01.escapeangle.com";
|
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.db-01;
|
path = deploy-rs.lib.aarch64-linux.activate.nixos config;
|
||||||
};
|
|
||||||
};
|
|
||||||
hosting-02 = {
|
|
||||||
hostname = "hosting-02.escapeangle.com";
|
|
||||||
profiles.system = {
|
|
||||||
user = "root";
|
|
||||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.hosting-02;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
}) { inherit (self.nixosConfigurations) db-01 hosting-02; };
|
||||||
|
|
||||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue