summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/games/unciv.nix
blob: 1eec5407fbf8abe8b4d23967f43410be20452a12 (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
    uncivConf = config.modules.desktop.apps.games.unciv;
    configDir = config.nixosConfig.configDir;
in {
    options.modules.desktop.apps.games.unciv = {
        enable = lib.mkOption {
            type = lib.types.bool;
            default = false;
        };
    };

    config = lib.mkIf (uncivConf.enable) {
      home.packages = with pkgs; [
        (callPackage (rootPath + /packages/unciv/default.nix) {})
      ];
    };
}