From aced2f565a56a388142f49e4f943f365a83e4289 Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 15 Dec 2023 18:58:49 +0100 Subject: [PATCH] games now controlled via settings --- games/default.nix | 12 ++++++++---- settings.nix | 5 +++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/games/default.nix b/games/default.nix index 8b92484..0045079 100644 --- a/games/default.nix +++ b/games/default.nix @@ -1,6 +1,10 @@ +{ lib, ... }: +let + settings = import ./../settings.nix; +in { - imports = [ - ./steam.nix - ./prismlauncher.nix - ]; + # Optionally import modules for game launchers, games or compatability layers + imports = + lib.optionals settings.games.prismlauncher [ ./prismlauncher.nix ] + ++ lib.optionals settings.games.steam [ ./steam.nix ]; } diff --git a/settings.nix b/settings.nix index 1254687..0b6039c 100644 --- a/settings.nix +++ b/settings.nix @@ -20,4 +20,9 @@ networking = { wireguard = true; # enable wireguard protocol }; + + games = { + prismlauncher = true; + steam = true; + }; }