From b46cbdccfcf82cc5fcf842e3d9f47996177cec46 Mon Sep 17 00:00:00 2001 From: joygnu Date: Fri, 16 Aug 2024 20:09:49 +0200 Subject: [PATCH] unfree package on my laptop noooooooooooo for school --- hosts/laptop/default.nix | 1 + hosts/laptop/unfree.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 hosts/laptop/unfree.nix diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 93a811b..929e2b0 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -12,6 +12,7 @@ imports = [ ../../modules ./hardware.nix + ./unfree.nix inputs.home-manager.nixosModules.default ]; } diff --git a/hosts/laptop/unfree.nix b/hosts/laptop/unfree.nix new file mode 100644 index 0000000..b1a0cd5 --- /dev/null +++ b/hosts/laptop/unfree.nix @@ -0,0 +1,11 @@ +{ pkgs , ... }: +{ + environment.systemPackages = with pkgs; [ + teams + ]; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "teams" + ]; + +} +