dotfiles/modules/nixos/gaming/dwarf-fortress.nix

38 lines
943 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2023-04-19 23:50:10 +00:00
2024-04-20 13:42:06 +00:00
options.gaming.dwarf-fortress.enable = lib.mkEnableOption "Dwarf Fortress free edition.";
2023-04-19 23:50:10 +00:00
config = lib.mkIf config.gaming.dwarf-fortress.enable {
unfreePackages = [
"dwarf-fortress"
"phoebus-theme"
];
2024-04-20 13:42:06 +00:00
environment.systemPackages =
let
dfDesktopItem = pkgs.makeDesktopItem {
name = "dwarf-fortress";
desktopName = "Dwarf Fortress";
exec = "${pkgs.dwarf-fortress-packages.dwarf-fortress-full}/bin/dfhack";
terminal = false;
};
dtDesktopItem = pkgs.makeDesktopItem {
name = "dwarftherapist";
desktopName = "Dwarf Therapist";
exec = "${pkgs.dwarf-fortress-packages.dwarf-fortress-full}/bin/dwarftherapist";
terminal = false;
};
in
[
pkgs.dwarf-fortress-packages.dwarf-fortress-full
dfDesktopItem
dtDesktopItem
];
2023-04-19 23:50:10 +00:00
};
}