Files
nixos/checks.nix
T

28 lines
519 B
Nix
Raw Normal View History

2025-11-02 23:45:16 -06:00
{
lib,
system,
2025-12-07 00:22:29 -06:00
top,
2025-12-10 07:02:12 -06:00
writeShellApplication,
2025-11-02 23:45:16 -06:00
...
}:
2024-10-03 11:16:06 -05:00
2025-12-07 17:44:58 -06:00
let
meta = import ./hosts/metadata.nix;
in
2025-12-08 05:53:17 -06:00
# Pulls all hosts down to be a check
2025-12-10 07:02:12 -06:00
(builtins.mapAttrs
(
2025-12-10 07:09:11 -06:00
n: v:
2025-12-10 07:02:12 -06:00
writeShellApplication {
name = "build-${n}";
runtimeInputs = [ ];
text = ''
nix build ".#${v.config.system.build.toplevel}"
'';
}
)
(lib.filterAttrs (n: _v: builtins.any (a: a == system) meta.${n}.arch) top.self.nixosConfigurations)
)
2025-12-08 05:53:17 -06:00
# Adds all packages as a check
2025-12-07 00:22:29 -06:00
// (top.self.packages.${system})