system/modules/home-manager/games.nix

22 lines
688 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-10-07 21:20:59 +03:00
endless-sky.enable = mkEnableOption "endless-sky";
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
2024-10-07 21:20:59 +03:00
++ lib.optional cfg.freeciv.enable pkgs.unstable.freeciv
++ lib.optional cfg.endless-sky.enable pkgs.unstable.endless-sky;
2024-04-16 02:51:46 +03:00
}