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