Try what the docs said

This commit is contained in:
Greg Hellings
2025-12-10 07:23:50 -06:00
parent 74e5d0fc54
commit 6ec7434bb4
2 changed files with 7 additions and 21 deletions
+5 -18
View File
@@ -1,27 +1,14 @@
{ {
lib, lib,
self',
system, system,
top, top,
writeShellApplication,
... ...
}: }:
let let
meta = import ./hosts/metadata.nix; nixos = lib.mapAttrs' (n: v: lib.nameValuePair "nixos-${n}" v.config.system.build.toplevel) (
lib.filterAttrs (_: v: v.pkgs.stdenv.hostPlatform.system == system) top.self.nixosConfigurations
);
in in
# Pulls all hosts down to be a check nixos // self'.packages
(builtins.mapAttrs
(
n: v:
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)
)
# Adds all packages as a check
// (top.self.packages.${system})
+2 -3
View File
@@ -105,9 +105,8 @@
packages = (import ./pkgs { inherit pkgs top; }) // (import ./vms { inherit top; }); packages = (import ./pkgs { inherit pkgs top; }) // (import ./vms { inherit top; });
checks = import ./checks.nix { checks = import ./checks.nix {
inherit system top; inherit system top self';
inherit (top) hooks; inherit (pkgs) lib;
inherit (pkgs) lib writeShellApplication;
}; };
devShells = import ./shells.nix { devShells = import ./shells.nix {