dotfiles/user-modules/gaming/launchers/es-de.nix

48 lines
1.0 KiB
Nix
Raw Normal View History

2025-01-26 14:11:52 +00:00
{
lib,
config,
pkgs,
2025-02-17 13:53:20 +00:00
system,
2025-01-26 14:11:52 +00:00
...
}:
with lib;
let
cfg = config.modules.es-de;
in
{
options.modules.es-de = {
enable = mkEnableOption "Emulation Station Desktop Edition";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
emulationstation-de
];
home.sessionVariables = {
ESDE_APPDATA_DIR = "$HOME/.config/ES-DE";
};
2025-02-17 13:53:20 +00:00
# TODO: Remove exception once no longer required by es-de
nixpkgs.config.permittedInsecurePackages = [
"freeimage-unstable-2021-11-01"
];
# TODO: Remove once emulationstation-de fixes the issue
# TODO: If not fixed, at least pin the specific commit properly
2025-02-17 13:53:20 +00:00
nixpkgs.overlays =
let
pkgs-stable = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixos-24.11.tar.gz";
sha256 = "1wr1xzkw7v8biqqjcr867gbpqf3kibkgly36lcnhw0glvkr1i986";
2025-02-17 13:53:20 +00:00
}) { inherit system; };
in
[
(final: prev: {
libgit2 = pkgs-stable.libgit2;
})
];
2025-01-26 14:11:52 +00:00
};
}