44 lines
986 B
Nix
Raw Normal View History

2024-04-20 09:42:06 -04:00
{
config,
pkgs,
lib,
...
}:
2025-01-20 22:35:40 -05:00
let
cfg = config.nmasur.presets.programs.dwarf-fortress;
in
2024-04-20 09:42:06 -04:00
{
2023-04-19 19:50:10 -04:00
2025-01-20 22:35:40 -05:00
options.nmasur.presets.programs.dwarf-fortress.enable = lib.mkEnableOption "Dwarf Fortress";
2023-04-19 19:50:10 -04:00
2025-01-20 22:35:40 -05:00
config = lib.mkIf cfg.enable {
unfreePackages = [
"dwarf-fortress"
"phoebus-theme"
];
2024-04-20 09:42:06 -04: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
];
2025-01-20 22:35:40 -05:00
2023-04-19 19:50:10 -04:00
};
}