feat(packages): explicitely allow unfree packages instead of global

wildcard
This commit is contained in:
Pierre Martin
2022-09-03 07:02:38 +02:00
parent 25b900dc3a
commit b2c5455747
3 changed files with 14 additions and 5 deletions

View File

@@ -1 +0,0 @@
{ allowUnfree = true; }

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
home.stateVersion = "22.05";
@@ -6,6 +6,19 @@
home.file.".i3status.conf".source = ./files/.i3status.conf;
home.file.".config/traefik/traefik.toml".source = ./files/traefik.toml;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"1password" "1password-cli"
"ngrok"
"postman"
"vscode"
"google-chrome-beta"
"slack"
"spotify" "spotify-unwrapped"
"zoom"
];
home.packages = with pkgs; [
wget
curl

View File

@@ -76,9 +76,6 @@
};
home-manager.users.pierre = import /home/pierre/dotfiles/home.nix;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [