From 61365dfbca3394c1b12853a348db96d4cb610d99 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Wed, 01 Oct 2025 23:45:34 +0000 Subject: [PATCH] fix: move fleet-tf data extra --- --- a/modules/extras/tf.nix +++ b/modules/extras/tf.nix @@ -25,14 +25,6 @@ ]; }; }; - data = mkDataOption { - # host => hostData - options.extra.terraformHosts = mkOption { - default = { }; - type = attrsOf (attrsOf unspecified); - description = "Hosts data provided by fleet tf"; - }; - }; }; config = { @@ -46,7 +38,17 @@ # will be somehow processed by fleet tf. sensitive = true; }; - fleetConfigurations.default.hosts = config.data.extra.terraformHosts; + fleetConfigurations.default = {config, ...}: { + options.data = mkDataOption { + # host => hostData + options.extra.terraformHosts = mkOption { + default = { }; + type = attrsOf (attrsOf unspecified); + description = "Hosts data provided by fleet tf"; + }; + }; + config.hosts = config.data.extra.terraformHosts; + }; perSystem.imports = [ ./tf-bootstrap.nix ]; }; -- gitstuff