If you put it in your ~/.nixpkgs/config.nix instead, it should be picked up by nix-repl.
2014-04-13 16:58 GMT+02:00 Ricardo M. Correia <[email protected]>: > Hi Marc, > > I've added it to my configuration.nix but it doesn't seem to work: > > # nix-repl '<nixpkgs>' > Welcome to Nix version 1.6.1. Type :? for help. > > Loading ‘<nixpkgs>’... > Added 3740 variables. > > nix-repl> pkgs.flashplayer.name > error: user-thrown exception: package ‘flashplayer-11.2.202.350’ in > «unknown-file» has an unfree license, refusing to evaluate > > > I would guess that would be because nix-repl doesn't even parse > configuration.nix? > > > On Sun, Apr 13, 2014 at 4:23 PM, Marc Weber <[email protected]> wrote: >> >> > How do I pass "allowUnfree = true" to nix-repl, so that it lets me >> > evaluate >> > unfree expressions? >> system: >> >> configuration.nix: >> nixpkgs.config.allowUnfree = true; >> >> user: >> >> ~/.nixpkgs/config.nix: >> { pkgs, ... } : { >> allowUnfree = true; >> } >> >> Marc Weber >> _______________________________________________ >> nix-dev mailing list >> [email protected] >> http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev > _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
