[Nix-dev] The .nixpkgs/config.nix file and user configuration

Nawal Husnoo nawal at husnoo.com
Thu May 4 07:54:32 CEST 2017


$ cat ~/.config/nixpkgs/config.nix
with import <nixpkgs> {};

{
    allowUnfree = true;

    graphicCollection = misc.collection {
        name = "foo" ;
        packages = [
           vlc
        ];
    };
}


$ nix-env -i misc.collection.graphicCollection
error: selector ‘misc.collection.graphicCollection’ matches no
derivations


On 4 May 2017 at 06:31, Marc Weber <marco-oweber at gmx.de> wrote:

>
> > I don't like the idea of using nix-env,
> Why? You can also have your own declarative set of packages "per user".
> that's also something config.nix can do:
> graphicCollection = misc.collection { name = ... ; packages = [ ... . ]}
> (from head)
>
> nix-env -i graphicCollection
>
> works well for me :)
>
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170504/f54f5274/attachment.html>


More information about the nix-dev mailing list