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
+4 -1
View File
@@ -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