$ 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 <[email protected]> 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
> [email protected]
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
[email protected]
https://mailman.science.uu.nl/mailman/listinfo/nix-dev