From 52a0991bfb67184f73ebeaba4d917ea148575b45 Mon Sep 17 00:00:00 2001 From: Moritz 'e1mo' Fromm Date: Fri, 28 Jul 2023 10:13:26 +0200 Subject: [PATCH] colmena: Use FQDN for deployment Complete TODO we initially left there --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index eefcfd0..8e78f4a 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; };