mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-08 18:11:10 +01:00
Add hydra jobs & flake packages
This commit is contained in:
parent
11b2a10c7b
commit
350fd669eb
10 changed files with 184 additions and 80 deletions
20
toplevel.nix
Normal file
20
toplevel.nix
Normal 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
|
||||
)
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue