[Nix-dev] NixOS: entry in configuration to list packages that should not be gc-ed
Eelco Dolstra
eelco.dolstra at logicblox.com
Thu Dec 10 19:54:00 CET 2015
Hi,
On 10/12/15 11:34, Freddy Rietdijk wrote:
> There are a bunch of packages I would always like to have available in the Nix
> store, but that I do not want directly in my primary environment. These packages
> I would like to specify in `/etc/nixos/configuration.nix` so that on a rebuild
> these are always available without downloading/building when I need them.
>
> I know that with `nix-shell` it is possible to prevent packages from being
> gc-ed, however, I would like to specify the list of packages in
> `configuration.nix`. Is there any such way?
Yes, via the option system.extraDependencies.
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list