make checks build needed software

This commit is contained in:
Daylin Morgan 2024-06-17 10:06:58 -05:00
parent c825262a72
commit c51da5dacf
Signed by: daylin
GPG Key ID: 950D13E9719334AD
2 changed files with 20 additions and 4 deletions

View File

@ -1,6 +1,15 @@
{ inputs, pkgs }:
{ inputs, system }:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.lix-module.overlays.default
inputs.hyprland-contrib.overlays.default
inputs.nixpkgs-wayland.overlay
];
};
in
{
makePackages =
pkgs.runCommandLocal "build-third-party"
{
@ -8,6 +17,8 @@
nativeBuildInputs = [
pkgs.pixi
pkgs.swww
pkgs.xdg-desktop-portal-hyprland
pkgs.nixVersions.stable
inputs.tsm.packages.${pkgs.system}.default
inputs.hyprman.packages.${pkgs.system}.default

View File

@ -34,7 +34,6 @@ let
../overlays
inputs.lix-module.nixosModules.default
] ++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostName}"));
specialArgs = {
inherit
inputs
@ -68,7 +67,13 @@ in
];
};
});
checks = forAllSystems (pkgs: import ./checks.nix { inherit pkgs inputs; });
checks = forAllSystems (
pkgs:
import ./checks.nix {
inherit inputs;
system = pkgs.system;
}
);
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};