1
0

flake.nix: Move hydraJobs to seperate file

This commit is contained in:
2024-05-13 16:21:47 +02:00
parent 1f7ffd82ba
commit 6beb8db05a
4 changed files with 17 additions and 10 deletions

15
flake/hydraJobs.nix Normal file
View File

@@ -0,0 +1,15 @@
{ self
, nixpkgs
, ...
}@inputs:
let
buildHosts = hosts: builtins.mapAttrs (name: host: host.config.system.build.toplevel) (nixpkgs.lib.filterAttrs (name: host: (builtins.substring 0 1 name) != "_") hosts);
in {
inherit (self)
packages;
nixosConfigurations = buildHosts self.nixosConfigurations;
iso = self.nixosConfigurations._iso.config.system.build.isoImage;
}