fix: use deploy-rs overlay to force usage of nixpkgs

teutat3s 2023-10-28 14:25:41 +02:00
parent 44f301c772
commit f116cc3129
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,13 @@
*/
{ lib, inputs }: let
deployPkgs = import inputs.nixpkgs {
inherit system;
overlays = [
deploy-rs.overlay
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
];
};
getFqdn = c: let
net = c.config.networking;
fqdn =
@ -53,7 +60,7 @@ in {
hostname = getFqdn c;
profiles.system = {
user = "root";
path = inputs.deploy-rs.lib.${c.pkgs.stdenv.hostPlatform.system}.activate.nixos c;
path = deployPkgs.deploy-rs.lib.activate.nixos c;
};
}
)