games now controlled via settings

This commit is contained in:
Sven Vogel 2023-12-15 18:58:49 +01:00
parent a566322eee
commit aced2f565a
2 changed files with 13 additions and 4 deletions

View File

@ -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 ];
}

View File

@ -20,4 +20,9 @@
networking = {
wireguard = true; # enable wireguard protocol
};
games = {
prismlauncher = true;
steam = true;
};
}