From 3b5a73c436eb22e0cda59469263490705e149cb9 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 9 Jan 2026 16:57:15 +0100 Subject: refactor: use flake-parts, change modules structure --- modules/nixos/steam/default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/nixos/steam/default.nix (limited to 'modules/nixos/steam/default.nix') diff --git a/modules/nixos/steam/default.nix b/modules/nixos/steam/default.nix new file mode 100644 index 0000000..d708139 --- /dev/null +++ b/modules/nixos/steam/default.nix @@ -0,0 +1,28 @@ +{ + config, + lib, + pkgs, + ... +}: +let + inherit (lib) mkEnableOption mkIf; + cfg = config.nx.steam; +in +{ + options.nx.steam = { + enable = mkEnableOption "Steam gaming platform"; + protontricks = mkEnableOption "protontricks" // { + default = true; + }; + gamescope = mkEnableOption "gamescope session compositor"; + }; + + config = mkIf cfg.enable { + programs.steam = { + enable = true; + protontricks.enable = cfg.protontricks; + gamescopeSession.enable = cfg.gamescope; + extraCompatPackages = [ pkgs.proton-ge-bin ]; + }; + }; +} -- cgit v1.3.1