fix: avoid endlessly compiling deploy-rs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
teutat3s 2024-01-09 01:39:36 +01:00
parent 501e17dc62
commit da31412323
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -8,6 +8,16 @@
lib, lib,
inputs, inputs,
}: let }: let
# https://github.com/serokell/deploy-rs#overall-usage
system = "x86_64-linux";
pkgs = import inputs.nixpkgs { inherit system; };
deployPkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.deploy-rs.overlay
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
];
};
getFqdn = c: let getFqdn = c: let
net = c.config.networking; net = c.config.networking;
fqdn = fqdn =
@ -55,7 +65,7 @@ in {
hostname = getFqdn c; hostname = getFqdn c;
profiles.system = { profiles.system = {
user = "root"; user = "root";
path = inputs.deploy-rs.lib.${c.pkgs.stdenv.hostPlatform.system}.activate.nixos c; path = deployPkgs.deploy-rs.lib.activate.nixos c;
}; };
} }
) )