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.
This commit is contained in:
Greg Hellings
2024-10-19 16:39:24 -05:00
parent 648563c8d4
commit ef16d9aade
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ let
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit nixpkgs top overlays; inherit nixpkgs top overlays;
inherit (top) self;
}; };
modules = [ modules = [
{ {
+4 -1
View File
@@ -2,10 +2,13 @@
pkgs, pkgs,
config, config,
lib, lib,
self,
... ...
}: }:
let let
builderHosts = [ "jude" "myself" ]; builderHosts = (
lib.attrNames (lib.filterAttrs (_: v: v.config.greg.remote-builder.enable) self.nixosConfigurations)
);
in in
{ {
# Enable flakes # Enable flakes