chore(nix): add home manager module tests

This commit is contained in:
Karol Broda
2025-12-25 19:31:17 +01:00
parent 4f012ccda2
commit 124f90611f
2 changed files with 449 additions and 0 deletions

View File

@@ -113,5 +113,25 @@
# alias for flake-parts compatibility
homeModules.default = self.homeManagerModules.default;
homeModules.snitch = self.homeManagerModules.default;
checks = eachSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
};
in
{
# home manager module tests
hm-module = import ./nix/tests/hm-module-test.nix {
inherit pkgs;
lib = pkgs.lib;
hmModule = self.homeManagerModules.default;
};
# package builds correctly
package = self.packages.${system}.default;
}
);
};
}