hosts: fix grabbing metadata for deployments

This commit is contained in:
Max Headroom 2023-03-20 19:11:42 +01:00
parent 789889fe42
commit df0bbbc83d

View file

@ -2,10 +2,12 @@
let
inherit (lib) elem mapAttrs toLower;
inherit (config) gods cluster defaultEffectSystem;
inherit (config) gods defaultEffectSystem;
inherit (config.herculesCI) branch;
inherit (self) nixosConfigurations;
meta = import ../tools/meta.nix;
chosenHours = gods.fromLight;
withEffectSystem = withSystem defaultEffectSystem;
@ -14,7 +16,7 @@ let
inherit (hci-effects) runIf runNixOS;
inherit (host.enterprise) subdomain;
hostname = "${toLower name}.${subdomain}.${cluster.domain}";
hostname = "${toLower name}.${subdomain}.${meta.domain}";
deploy-rs = inputs.deploy-rs.lib."${host.system}";
in {