From eb343620550798ee7ed161cba66e107e73120307 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Thu, 8 Jan 2026 18:18:10 +0100 Subject: feat(modules): setup a module for steam --- modules/hosts/steam/default.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 modules/hosts/steam/default.nix (limited to 'modules/hosts/steam/default.nix') diff --git a/modules/hosts/steam/default.nix b/modules/hosts/steam/default.nix new file mode 100644 index 0000000..05a3703 --- /dev/null +++ b/modules/hosts/steam/default.nix @@ -0,0 +1,39 @@ +{ + config, + pkgs, + lib, + ... +}: +let + cfg = config.nx.steam; + inherit (lib) mkOption types mkIf; +in +{ + options.nx.steam = { + enable = mkOption { + description = "Digital distribution platfrom from vavle"; + type = types.bool; + default = false; + }; + useProtontricks = mkOption { + description = "Whether to enable protontricks"; + type = types.bool; + default = true; + }; + useGamescope = mkOption { + description = "SteamOS session compositing window manager"; + type = types.bool; + default = false; + }; + }; + config = mkIf cfg.enable { + programs.steam = { + enable = true; + protontricks.enable = cfg.useProtontricks; + gamescopeSession.enable = cfg.useGamescope; + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; + }; + }; +} -- cgit v1.3.1