diff options
Diffstat (limited to 'modules/desktop/apps/games')
| -rw-r--r-- | modules/desktop/apps/games/lunati.nix | 24 | ||||
| -rw-r--r-- | modules/desktop/apps/games/openttd.nix | 28 | ||||
| -rw-r--r-- | modules/desktop/apps/games/prism.nix | 2 | ||||
| -rw-r--r-- | modules/desktop/apps/games/steam.nix | 5 | ||||
| -rw-r--r-- | modules/desktop/apps/games/vintagestory.nix | 26 |
5 files changed, 77 insertions, 8 deletions
diff --git a/modules/desktop/apps/games/lunati.nix b/modules/desktop/apps/games/lunati.nix new file mode 100644 index 0000000..1c06b4f --- /dev/null +++ b/modules/desktop/apps/games/lunati.nix @@ -0,0 +1,24 @@ +{ + config, + options, + lib, + pkgs, + rootPath, + ... +}: let + luantiConf = config.modules.desktop.apps.games.luanti; + configDir = config.nixosConfig.configDir; +in { + options.modules.desktop.apps.games.luanti = { + enable = lib.mkOption { + type = lib.types.bool; + default = false; + }; + }; + + config = lib.mkIf (luantiConf.enable) { + home.packages = with pkgs; [ + luanti + ]; + }; +} diff --git a/modules/desktop/apps/games/openttd.nix b/modules/desktop/apps/games/openttd.nix new file mode 100644 index 0000000..f66ccc0 --- /dev/null +++ b/modules/desktop/apps/games/openttd.nix @@ -0,0 +1,28 @@ +{ + config, + options, + lib, + pkgs, + rootPath, + ... +}: let + openttdConf = config.modules.desktop.apps.games.openttd; + configDir = config.nixosConfig.configDir; +in { + options.modules.desktop.apps.games.openttd = { + enable = lib.mkOption { + type = lib.types.bool; + default = false; + }; + }; + + config = lib.mkIf (openttdConf.enable) { + home.packages = with pkgs; [ + openttd + ]; + + fonts.packages = with pkgs; [ + openttd-ttf + ]; + }; +} diff --git a/modules/desktop/apps/games/prism.nix b/modules/desktop/apps/games/prism.nix index 4eb0a5f..d3ceee7 100644 --- a/modules/desktop/apps/games/prism.nix +++ b/modules/desktop/apps/games/prism.nix @@ -5,7 +5,7 @@ pkgs, ... }: let - prismConf = config.modules.desktop.apps.games; + prismConf = config.modules.desktop.apps.games.prism; configDir = config.nixosConfig.configDir; in { options.modules.desktop.apps.games.prism = { diff --git a/modules/desktop/apps/games/steam.nix b/modules/desktop/apps/games/steam.nix index 50b5c62..51396f1 100644 --- a/modules/desktop/apps/games/steam.nix +++ b/modules/desktop/apps/games/steam.nix @@ -29,6 +29,11 @@ in { remotePlay.openFirewall = true; dedicatedServer.openFirewall = true; gamescopeSession.enable = true; + protontricks.enable = true; }; + + environment.systemPackages = with pkgs; [ + protonup-qt + ]; }; } diff --git a/modules/desktop/apps/games/vintagestory.nix b/modules/desktop/apps/games/vintagestory.nix index db3d49e..a15935a 100644 --- a/modules/desktop/apps/games/vintagestory.nix +++ b/modules/desktop/apps/games/vintagestory.nix @@ -3,17 +3,29 @@ options, lib, pkgs, + rootPath, ... }: let - gamesConf = config.modules.desktop.apps.games; + vsConf = config.modules.desktop.apps.games.vintagestory; configDir = config.nixosConfig.configDir; in { - config = lib.mkIf (gamesConf.enable) { - environment.systemPackages = [ - pkgs.dotnet-sdk_7 - ]; - environment.sessionVariables = { - DOTNET_ROOT = "${pkgs.dotnet-sdk_7}"; + options.modules.desktop.apps.games.vintagestory = { + enable = lib.mkOption { + type = lib.types.bool; + default = false; }; }; + + config = lib.mkIf (vsConf.enable) { + home.manager.xdg.mimeApps = { + defaultApplications = { + "x-scheme-handler/vintagestoryjoin" = [ "Vintagestory_url_connect.desktop" ]; + "x-scheme-handler/vintagestorymodinstall" = [ "Vintagestory_url_mod.desktop" ]; + }; + }; + + home.packages = with pkgs; [ + (callPackage (rootPath + /packages/vintagestory/default.nix) {}) + ]; + }; } |
