this post was submitted on 14 Dec 2024
4 points (100.0% liked)

nixos

1292 readers
3 users here now

All about NixOS - https://nixos.org/

founded 4 years ago
 

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???

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (4 children)

my configuration.nix has this line:

nixpkgs.config.allowUnfree = true;

If you're using an additional nixpkgs, (I have both 24.11 and unstable) there's another syntax for that, depending on whether you use flakes. Anyway the above should work, flakes or not.

If not, post the error you're getting.

[–] [email protected] 1 points 1 week ago (3 children)

The error I'm getting is " syntax error, unexpected '=', expecting end of file

[–] [email protected] 3 points 1 week ago (1 children)

Probably you're putting the code in the wrong place.

Maybe try searching GitHub for example code, lots of people put their configs on there. Or if you post your whole config file someone can probably help

[–] [email protected] 2 points 1 week ago

TYSM IT WORKED

load more comments (1 replies)
load more comments (1 replies)