diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/gaming/default.nix (renamed from modules/programs/heroic/default.nix) | 15 | ||||
| -rw-r--r-- | modules/gaming/steam.nix (renamed from modules/programs/heroic/steam.nix) | 6 | ||||
| -rw-r--r-- | modules/programs/default.nix | 1 | ||||
| -rw-r--r-- | modules/programs/heroic/nexus-mods.nix | 36 |
5 files changed, 11 insertions, 48 deletions
diff --git a/modules/default.nix b/modules/default.nix index 5a21b65..4cb90af 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -4,6 +4,7 @@ imports = [ ./desktop ./fonts + ./gaming ./scripts ./programs ]; diff --git a/modules/programs/heroic/default.nix b/modules/gaming/default.nix index aaf4b90..f1933bd 100644 --- a/modules/programs/heroic/default.nix +++ b/modules/gaming/default.nix @@ -5,16 +5,15 @@ ... }: -# Heroic Games Launcher - An elegant UI for Epic, GOG, and Amazon Games using UMU under the hood +# Gaming - Collection of game launchers and gaming utilities { imports = [ - ./nexus-mods.nix ./steam.nix ]; - options.programs.heroic = { - enable = lib.mkEnableOption "Enables Heroic Games Launcher."; - package = lib.mkOption { + options.gaming = { + enable = lib.mkEnableOption "gaming tools bundle (Heroic, winetricks, gamemode)."; + launcher = lib.mkOption { type = lib.types.package; default = pkgs.symlinkJoin { name = "heroic-bundle"; @@ -34,12 +33,12 @@ gamemode ]; }; - description = "Bundle of Heroic Games Launcher, winetricks, and core utilities with GameMode support."; + description = "Bundle of game launchers (Heroic), winetricks, and core gaming utilities with GameMode support."; }; }; - config = lib.mkIf config.programs.heroic.enable { - home.packages = [ config.programs.heroic.package ]; + config = lib.mkIf config.gaming.enable { + home.packages = [ config.gaming.launcher ]; xdg.mimeApps.defaultApplications = { "x-scheme-handler/heroic" = "heroic.desktop"; diff --git a/modules/programs/heroic/steam.nix b/modules/gaming/steam.nix index 287758f..d1944d5 100644 --- a/modules/programs/heroic/steam.nix +++ b/modules/gaming/steam.nix @@ -7,7 +7,7 @@ # Steam - game store { - options.programs.heroic.steam = { + options.gaming.steam = { enable = lib.mkEnableOption "Enables steam."; package = lib.mkOption { type = lib.types.package; @@ -16,7 +16,7 @@ }; }; - config = lib.mkIf config.programs.heroic.steam.enable { - home.packages = [ config.programs.heroic.steam.package ]; + config = lib.mkIf config.gaming.steam.enable { + home.packages = [ config.gaming.steam.package ]; }; } diff --git a/modules/programs/default.nix b/modules/programs/default.nix index d6d59c6..28583d5 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -16,7 +16,6 @@ ./fzf ./git ./gpg - ./heroic ./htop ./impala ./kitty diff --git a/modules/programs/heroic/nexus-mods.nix b/modules/programs/heroic/nexus-mods.nix deleted file mode 100644 index e459f14..0000000 --- a/modules/programs/heroic/nexus-mods.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - 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.nexus-mods.enable { - home.packages = [ config.programs.heroic.nexus-mods.package ]; - - xdg.mimeApps = { - enable = true; - defaultApplications = { - "x-scheme-handler/nxm" = [ "com.nexusmods.app.desktop" ]; - }; - }; - - nixpkgs.config = { - allowUnfree = true; - permittedInsecurePackages = [ - "nexusmods-app-unfree-0.21.1" - ]; - }; - }; -} |
