From 7592e632b6d2be70a45165a7be0847682b81aef8 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Mon, 21 Oct 2024 01:07:10 +0200 Subject: [PATCH] gaming packages only in default --- gaming.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gaming.nix b/gaming.nix index eff5826..e8459b5 100644 --- a/gaming.nix +++ b/gaming.nix @@ -1,15 +1,12 @@ -{ lib, config, pkgs, ... }: { - - # nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - # "lutris" - # ]; +{ lib, config, pkgs, variant, ... }: { nixpkgs.config = { allowUnfree = true; }; - home.packages = with pkgs; [ + home.packages = if variant == "default" then with pkgs; [ lutris mangohud prismlauncher heroic steam - ]; + ] + else []; }