summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/games/openttd.nix
blob: f66ccc0b5191a248e5665285bad2df0726a08ecd (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
25
26
27
28
{
    config,
    options,
    lib,
    pkgs,
    rootPath,
    ...
}: let
    openttdConf = config.modules.desktop.apps.games.openttd;
    configDir = config.nixosConfig.configDir;
in {
    options.modules.desktop.apps.games.openttd = {
        enable = lib.mkOption {
            type = lib.types.bool;
            default = false;
        };
    };

    config = lib.mkIf (openttdConf.enable) {
      home.packages = with pkgs; [
        openttd
      ];

      fonts.packages = with pkgs; [
        openttd-ttf
     ];
    };
}