1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 14:13:53 +00:00
ultima/modules/home/programs/cli/legendary/default.nix

36 lines
634 B
Nix
Raw Normal View History

{
x,
pkgs,
lib,
config,
...
}:
2024-12-03 14:20:37 +00:00
with lib;
2024-12-09 01:15:55 +00:00
with x;
let
cfg = config.module.programs.cli.legendary;
in
{
options = {
module.programs.cli.legendary = {
enable = mkBool;
};
};
2024-12-03 14:20:37 +00:00
config = mkIf cfg.enable {
home.packages = with pkgs; [ legendary-gl ];
xdg.configFile."legendary/config.ini".text = ''
[Legendary]
log_level = debug
max_memory = 2048
max_workers = 8
install_dir = ${dev.hdd}/Games[LITE]
locale = en-US
disable_https = false
disable_update_check = false
disable_update_notice = false
disable_auto_aliasing = false
'';
};
}