mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 19:43:52 +00:00
36 lines
634 B
Nix
36 lines
634 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.programs.cli.legendary;
|
|
in
|
|
{
|
|
options = {
|
|
module.programs.cli.legendary = {
|
|
enable = mkBool;
|
|
};
|
|
};
|
|
|
|
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
|
|
'';
|
|
};
|
|
}
|