From ef16d9aadee922c11a95ea36b849694ac4692a99 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sat, 19 Oct 2024 16:39:24 -0500 Subject: [PATCH] Pull list of builders from actual config Rather than maintaining a list of the hosts by name, we can pull that from the list of hosts that are configured with my module. --- hosts/default.nix | 1 + modules/baseline.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/default.nix b/hosts/default.nix index bf2cdd3..334be65 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -27,6 +27,7 @@ let inherit system; specialArgs = { inherit nixpkgs top overlays; + inherit (top) self; }; modules = [ { diff --git a/modules/baseline.nix b/modules/baseline.nix index 2adc765..c41cef6 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -2,10 +2,13 @@ pkgs, config, lib, + self, ... }: let - builderHosts = [ "jude" "myself" ]; + builderHosts = ( + lib.attrNames (lib.filterAttrs (_: v: v.config.greg.remote-builder.enable) self.nixosConfigurations) + ); in { # Enable flakes