system/modules/home-manager/games.nix

19 lines
564 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";
freeciv.enable = mkEnableOption "freeciv";
};
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
++ lib.optional cfg.freeciv.enable pkgs.unstable.freeciv;
}