refactor(modules/games): now using the same arch from services

This commit is contained in:
Raphael 2025-10-09 00:37:35 +02:00 committed by Raphaël
parent 0cd8633d04
commit 14f69827ef

41
modules/games.nix Normal file
View file

@ -0,0 +1,41 @@
{
config,
pkgs,
lib,
...
}:
let
steam = import ./games/steam.nix {
inherit config pkgs lib;
};
lutris = import ./games/lutris.nix {
inherit config pkgs lib;
};
in
{
imports = [
lutris
steam
];
options.games = {
steam = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable steam installation";
};
bp = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the autostart of steam in big picture";
};
};
lutris = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable lutris";
};
};
}