How to test changes to a nixos module?

Passing -I nixpkgs=/path/to/your/nixpkgs to nixos-rebuild will make it use /path/to/your/nixpkgs on a one-off basis.

4 Likes