explicitly list allowed unfree packages

This commit is contained in:
Casper V. Kristensen 2023-11-11 23:12:33 +01:00
parent 439543055e
commit b0cd8a2d84
2 changed files with 6 additions and 2 deletions

View file

@ -27,7 +27,6 @@
nixpkgs-unstable.flake = nixpkgs-unstable; nixpkgs-unstable.flake = nixpkgs-unstable;
}; };
}; };
nixpkgs.config.allowUnfree = true;
# Enable all firmware with a license allowing redistribution # Enable all firmware with a license allowing redistribution
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;

View file

@ -1,4 +1,4 @@
{ home-manager, nixpkgs, pkgs, ... }: { { home-manager, lib, nixpkgs, pkgs, ... }: {
# Packages useful on a desktop computer which don't require their own module # Packages useful on a desktop computer which don't require their own module
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -18,6 +18,11 @@
webcord # discord webcord # discord
]; ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"pycharm-professional"
"spotify"
];
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"electron-24.8.6" # for webcord "electron-24.8.6" # for webcord
]; ];