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

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