diff --git a/lib/checks.nix b/lib/checks.nix index 5c17fe2..9ed64f0 100644 --- a/lib/checks.nix +++ b/lib/checks.nix @@ -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 diff --git a/lib/default.nix b/lib/default.nix index 8cf901c..7ac7953 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -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); };