From 032f595f7e2fd7114ffb59e54d72fa42691fda4a Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 19 Jan 2025 15:09:31 -0800 Subject: [PATCH] feat(nixos): Steam --- modules/nixos/programs/steam/default.nix | 20 ++++++++++++++++++++ systems/x86_64-linux/nyx/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 modules/nixos/programs/steam/default.nix diff --git a/modules/nixos/programs/steam/default.nix b/modules/nixos/programs/steam/default.nix new file mode 100644 index 0000000..5d61b1c --- /dev/null +++ b/modules/nixos/programs/steam/default.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.marleyos.programs.steam; +in { + options.marleyos.programs.steam.enable = lib.mkEnableOption "steam"; + + config = lib.mkIf cfg.enable { + programs.steam = { + enable = true; + + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; + }; + }; +} diff --git a/systems/x86_64-linux/nyx/default.nix b/systems/x86_64-linux/nyx/default.nix index 7855865..d6c22e7 100644 --- a/systems/x86_64-linux/nyx/default.nix +++ b/systems/x86_64-linux/nyx/default.nix @@ -21,6 +21,7 @@ in { programs = { fish = enabled; nh = enabled; + steam = enabled; }; services = {