2024-12-16 12:55:24 +00:00
|
|
|
{ x, pkgs, lib, config, ... }:
|
2024-12-03 14:20:37 +00:00
|
|
|
|
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-12-03 14:20:37 +00:00
|
|
|
let cfg = config.module.programs.cli.legendary;
|
|
|
|
in {
|
2024-12-09 01:15:55 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|