summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/games/lutris.nix
blob: c1c5d3138ac4352ec5770654a4e20171350b010f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
    config,
    options,
    lib,
    pkgs,
    ...
}: let
    lutrisConf = config.modules.desktop.apps.games.lutris;
    configDir = config.nixosConfig.configDir;
in {
    options.modules.desktop.apps.games.lutris = {
        enable = lib.mkOption {
            type = lib.types.bool;
            default = false;
        };
    };

    config = lib.mkIf (lutrisConf.enable) {
        environment.systemPackages = [
            pkgs.lutris
        ];
    };
}