mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-25 11:43:52 +00:00
28 lines
615 B
Nix
28 lines
615 B
Nix
|
{ pkgs, lib, config, ... }:
|
||
|
|
||
|
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
|
||
|
'';
|
||
|
};
|
||
|
}
|
||
|
|