Newbie question about installing Joypixels

How i can solve this i’m trying to install Joypixels i have added it to the configuration.nix
then this appeared i don’t know what to do

The error message tells you what you need to do. Did you try it?

1 Like

as it states in the error thrown you need to accept the license in your config:

nixpkgs.config.allowUnfreePredicate = pkg:
  builtins.elem(lib.getName pkg) [
    "joypixels"
  ];
nixpkgs.config.joypixels.acceptLicense = true;
1 Like

i did not try because felt confused on what to do

If you write it in your config file just write it without the nixpkgs.config part:

allowUnfreePredicate = pkg:
  builtins.elem(lib.getName pkg) [
    "joypixels"
  ];
joypixels.acceptLicense = true;
1 Like

The section that says configuration.nix:, it’s a literal copy-paste into your config.

1 Like

thank you this worked :grinning:

thank you for your help :grinning:

i want to thank everyone that helped me to solve the problem i faced i’m new to Nixos i learned something new from your help to me THANK YOU SO MUCH :grinning:

1 Like