Nixos-shell: Difference between revisions

Klinger (talk | contribs)
mNo edit summary
Onny (talk | contribs)
Add section how to use local nixpkgs folder
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
     settings.title = "My Wiki";
     settings.title = "My Wiki";
   };
   };
};
}
</nowiki>}}
</nowiki>}}


Line 31: Line 31:


After the VM is successfully booted, DokuWiki will be available on http://localhost:8080
After the VM is successfully booted, DokuWiki will be available on http://localhost:8080
=== Reference local nixpkgs folder ===
Using the <code>-I nixpkgs</code> parameter, you could choose to use a local ''nixpkgs'' repository, for example to test unfinished packages or modules:<syntaxhighlight lang="bash">
nixos-shell -I nixpkgs=/home/myuser/projects/nixpkgs myvm.nix
</syntaxhighlight>


=== Mounting host directories ===
=== Mounting host directories ===