Add hydra jobs & flake packages

This commit is contained in:
Tristan Ross 2025-09-06 06:27:36 -07:00
parent 11b2a10c7b
commit 350fd669eb
No known key found for this signature in database
GPG key ID: B09C422035669AF8
10 changed files with 184 additions and 80 deletions

20
toplevel.nix Normal file
View file

@ -0,0 +1,20 @@
{
lib,
fn ? p: import p,
args ? { },
}:
let
pkgs = builtins.mapAttrs (_name: p: fn p args) {
microsoft-surface = ./microsoft/surface/pkgs;
};
in
lib.foldAttrs (item: acc: item // acc) { } (
lib.flatten (
lib.attrValues (
lib.mapAttrs (
toplevelName: jobs:
lib.listToAttrs (lib.mapAttrsToList (name: lib.nameValuePair "${toplevelName}/${name}") jobs)
) pkgs
)
)
)