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:
@@ -27,6 +27,7 @@ let
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit nixpkgs top overlays;
|
inherit nixpkgs top overlays;
|
||||||
|
inherit (top) self;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user