allow specific unfree

This commit is contained in:
Noah Masur
2022-06-04 21:08:09 -04:00
parent f4d5df0071
commit 3b38f0301a
8 changed files with 29 additions and 10 deletions

View File

@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }: {
config = lib.mkIf config.gui.enable {
nixpkgs.config.allowUnfree = true;
unfreePackages = [ "1password" "_1password-gui" ];
home-manager.users.${config.user} = {
home.packages = with pkgs; [ _1password-gui ];
};

View File

@ -1,8 +1,8 @@
{ config, pkgs, lib, ... }: {
config = lib.mkIf config.gui.enable {
unfreePackages = [ "discord" ];
home-manager.users.${config.user} = {
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [ discord ];
};
};

View File

@ -2,6 +2,14 @@
{
config = lib.mkIf config.gui.enable {
# nixpkgs.config.allowUnfreePredicate = pkg:
# builtins.elem (lib.getName pkg) [ "onepassword-password-manager" ];
nixpkgs.config.allowlistedLicenses = [
pkgs.nur.repos.rycee.firefox-addons.onepassword-password-manager.meta.license
pkgs.nur.repos.rycee.firefox-addons.okta-browser-plugin.meta.license
];
home-manager.users.${config.user} = {
programs.firefox = {