system/modules/home-manager/games.nix

20 lines
564 B
Nix
Raw Normal View History

2024-04-16 02:51:46 +03:00
{ 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";
2024-09-02 12:35:07 +03:00
freeciv.enable = mkEnableOption "freeciv";
2024-04-16 02:51:46 +03:00
};
config.home.packages =
lib.optional cfg.mindustry.enable pkgs.unstable.mindustry
++ lib.optional cfg.widelands.enable pkgs.widelands
2024-09-02 12:35:07 +03:00
++ lib.optional cfg.unciv.enable pkgs.unstable.unciv
++ lib.optional cfg.freeciv.enable pkgs.unstable.freeciv;
2024-04-16 02:51:46 +03:00
}