summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/games/lunati.nix
blob: 1c06b4f9d76e2025f1f0e2ad15938279e96cdbf4 (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
24
{
    config,
    options,
    lib,
    pkgs,
    rootPath,
    ...
}: let
    luantiConf = config.modules.desktop.apps.games.luanti;
    configDir = config.nixosConfig.configDir;
in {
    options.modules.desktop.apps.games.luanti = {
        enable = lib.mkOption {
            type = lib.types.bool;
            default = false;
        };
    };

    config = lib.mkIf (luantiConf.enable) {
      home.packages = with pkgs; [
        luanti
      ];
    };
}