From 34a81b72d264acc99972e4a8e77be33e713486c8 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Tue, 25 Nov 2025 07:16:48 -0500 Subject: use overlays instead of custom defined packages when possible --- modules/desktop/apps/games/freeciv.nix | 24 ------------------------ modules/desktop/apps/games/lunati.nix | 24 ++++++++++++++++++++++++ modules/desktop/apps/games/steam.nix | 5 +++++ modules/desktop/apps/games/unciv.nix | 24 ------------------------ 4 files changed, 29 insertions(+), 48 deletions(-) delete mode 100644 modules/desktop/apps/games/freeciv.nix create mode 100644 modules/desktop/apps/games/lunati.nix delete mode 100644 modules/desktop/apps/games/unciv.nix (limited to 'modules/desktop/apps/games') diff --git a/modules/desktop/apps/games/freeciv.nix b/modules/desktop/apps/games/freeciv.nix deleted file mode 100644 index cb5e462..0000000 --- a/modules/desktop/apps/games/freeciv.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - config, - options, - lib, - pkgs, - rootPath, - ... -}: let - freecivConf = config.modules.desktop.apps.games.freeciv; - configDir = config.nixosConfig.configDir; -in { - options.modules.desktop.apps.games.freeciv = { - enable = lib.mkOption { - type = lib.types.bool; - default = false; - }; - }; - - config = lib.mkIf (freecivConf.enable) { - home.packages = with pkgs; [ - (callPackage (rootPath + /packages/freeciv/default.nix) {}) - ]; - }; -} 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/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/unciv.nix b/modules/desktop/apps/games/unciv.nix deleted file mode 100644 index 1eec540..0000000 --- a/modules/desktop/apps/games/unciv.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - config, - options, - lib, - pkgs, - rootPath, - ... -}: let - uncivConf = config.modules.desktop.apps.games.unciv; - configDir = config.nixosConfig.configDir; -in { - options.modules.desktop.apps.games.unciv = { - enable = lib.mkOption { - type = lib.types.bool; - default = false; - }; - }; - - config = lib.mkIf (uncivConf.enable) { - home.packages = with pkgs; [ - (callPackage (rootPath + /packages/unciv/default.nix) {}) - ]; - }; -} -- cgit v1.2.1