colmena: Use FQDN for deployment

Complete TODO we initially left there
This commit is contained in:
Moritz 'e1mo' Fromm 2023-07-28 10:13:26 +02:00
parent a5de6d59b3
commit 52a0991bfb
No known key found for this signature in database
GPG key ID: 1D5D79A439E787F1

View file

@ -55,11 +55,10 @@
meta.nixpkgs = import nixpkgs {
system = "x86_64-linux";
};
defaults = { name, ... }: {
defaults = { name, config, ... }: {
deployment = {
tags = if name == "shirley" then [ "prod" ] else [ "dev" ];
# TODO: It'd probably be nice to derive that from the host-configured fqdn
targetHost = "${name}.net.chaos.jetzt";
targetHost = config.networking.fqdn;
targetUser = null;
};
};