[Nix-dev] Has someone a working setup for Kernel development with NixOS?

joachifm at fastmail.fm joachifm at fastmail.fm
Mon Jun 27 21:10:53 CEST 2016


On Mon, Jun 27, 2016, at 08:52 PM, Matthias Beyer wrote:
> basically what I do with `nixos-rebuild build-vm` but from another 
> configuration.nix than my system-configuration.nix.

You probably want something like
```
$ nix-build -I nixpkgs=/my/nixpkgs -I nixos-config=/my/configuration.nix
'<nixpkgs/nixos>' -A vm
$ ./result/bin/run-nixos-vm
```
or some variation thereof.

HTH,
Joachim


More information about the nix-dev mailing list