Unfree software: Difference between revisions
"See also" section |
Update code |
||
Line 2: | Line 2: | ||
=== Per-package (Ideal) === | === Per-package (Ideal) === | ||
This method works for NixOS system level configuration and Home | This method works for both NixOS system level configuration and standalone [[Home manager]]: | ||
< | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
{ | |||
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | |||
"vscode" | |||
]; | |||
} | } | ||
</ | |||
</nowiki>}} | |||
=== For all packages === | === For all packages === |