I have tried to allow unfree packages to install steam and discord but nothing worked here are some of the things I have tried; 1. { allowUnfree = true; allowUnfreePredicate = pkg: true; }

{ nixpkgs.config.allowUnfree = true; }

( config, pkgs, allow unfree=true)

Every time I tried to rebuild something would go wrong so I tried temporary stuff like NIXPKGS_ALLOW_UNFREE=1 nix-shell And –impure But nothing worked

What should I do???

  • 2xsaiko@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    8 days ago

    It goes in a module inside the attrset braces where other options are also set. configuration.nix already has that.

    {
      nixpkgs.config.allowUnfree = true;
    
      # more option definitions
    }
    

    Actually, post your code. That way we don’t have to guess.