17 lines
456 B
Nix
17 lines
456 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
cfg = config.local.games;
|
|
in
|
|
{
|
|
options.local.games = with lib; {
|
|
mindustry.enable = mkEnableOption "mindustry";
|
|
widelands.enable = mkEnableOption "widelands";
|
|
unciv.enable = mkEnableOption "unciv";
|
|
};
|
|
|
|
config.home.packages =
|
|
lib.optional cfg.mindustry.enable pkgs.unstable.mindustry
|
|
++ lib.optional cfg.widelands.enable pkgs.widelands
|
|
++ lib.optional cfg.unciv.enable pkgs.unstable.unciv;
|
|
}
|