I already run NixOS tests with nix flake check. How can I add Home Manager tests to the same command? Home Manager uses NMT, which as far as I can tell is completely undocumented. The Home Manager flake also does not have the checks output (and doesn’t have NixOS tests), so I’m unsure where to find any information.
Easiest way I could think of would be to test home manager modules in a barebones nixos configuration.
Or you can reach out to the author of NMT, who is also the author of Home Manager, to document their framework.
I don’t understand. That’s what I’m asking how to do.
I didn’t realise they were the same person, thanks for the tip! Filed a documentation issue upstream.
Use HM as a NixOS module, and define a dummy user.
1 Like
I have no idea how that would look. Don’t I need HMT? Or are you saying to change my tests from HMT to NixOS tests?
I don’t know how to use HMT, so I’m not making recommendations based on that. Yes, use a NixOS test.