[Nix-dev] Best Practices on Modularizing Configuration.nix?

Vladimír Čunát vcunat at gmail.com
Mon Feb 27 20:30:52 CET 2017


Hi!

On 02/27/2017 03:15 PM, Mark Gardner wrote:
> - cfg/common.nix  # common config
> - cfg/desktop.nix  # xorg and related
> - cfg/laptop.nix  # related to all laptops

I have exactly those three imports, and I also symlink configuration.nix :-)

One more thing I enjoy:
  nixpkgs.config = import ./nixpkgs-config.nix;

so that I can also import it in ~/.nixpkgs/config.nix and have nix-env +
nix-build use the same pre-defined package-sets, overrides, and other
settings.

--Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170227/612c6631/attachment-0001.p7s>


More information about the nix-dev mailing list