NixOS modules: Difference between revisions

imported>Asymmetric
add stub on developing modules
imported>Asymmetric
m →‎Developing modules: remove stray .
Line 212: Line 212:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
nixos-rebuild build-vm --fast -I nixos-config=./configuration.nix -I nixpkgs=.
nixos-rebuild build-vm --fast -I nixos-config=./configuration.nix -I nixpkgs=.
</syntaxhighlight>.
</syntaxhighlight>


If you're developing on top of master, this will potentially cause the compilation of lots of packages, since master is not cached on cache.nixos.org. To avoid that, you can develop your module on top of nixos-unstable, by adding it as a remote:
If you're developing on top of master, this will potentially cause the compilation of lots of packages, since master is not cached on cache.nixos.org. To avoid that, you can develop your module on top of nixos-unstable, by adding it as a remote: