mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-10 13:33:51 +00:00
28 lines
620 B
Nix
28 lines
620 B
Nix
{ pkgs, lib, config, dev, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.module.programs.cli.legendary;
|
|
in {
|
|
options = {
|
|
module.programs.cli.legendary = { enable = mkEnableOption ""; };
|
|
};
|
|
|
|
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
|
|
'';
|
|
};
|
|
}
|
|
|