From 9abd37edc5a5bcabc35338b6a9ef2aa90f9ae6a0 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 31 May 2026 18:44:37 +0530 Subject: added nexus mods to heroic launcher --- modules/programs/heroic/nexus-mods.nix | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/programs/heroic/nexus-mods.nix (limited to 'modules/programs/heroic/nexus-mods.nix') diff --git a/modules/programs/heroic/nexus-mods.nix b/modules/programs/heroic/nexus-mods.nix new file mode 100644 index 0000000..8adc7bf --- /dev/null +++ b/modules/programs/heroic/nexus-mods.nix @@ -0,0 +1,36 @@ +{ + config, + pkgs, + lib, + ... +}: + +# Nexus Mods - for Modding Games +{ + options.programs.heroic.nexus-mods = { + enable = lib.mkEnableOption "Enables NexusMods."; + package = lib.mkOption { + type = lib.types.package; + default = pkgs.nexusmods-app-unfree; + description = "Package for NexusMods app, used to mod games."; + }; + }; + + config = lib.mkIf config.programs.heroic.enable { + home.packages = [ config.programs.heroic.nexus-mods.package ]; + + xdg.mimeApps = { + enable = true; + defaultApplications = { + "x-scheme-handler/nxm" = [ "nexusmods-app.desktop" ]; + }; + }; + + nixpkgs.config = { + allowUnfree = true; + permittedInsecurePackages = [ + "nexusmods-app-unfree-0.21.1" + ]; + }; + }; +} -- cgit v1.2.3