diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-02 10:48:21 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-02 10:48:21 -0400 |
| commit | 31c316d19cd974bb81a5d6de62142ff24db1c78e (patch) | |
| tree | cb941422c76cb8953830a8d58c8e14dca1a10319 /nixos/features/gui/apps | |
| parent | 1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff) | |
reorganized directory structure
Diffstat (limited to 'nixos/features/gui/apps')
| -rw-r--r-- | nixos/features/gui/apps/steam.nix | 31 | ||||
| -rw-r--r-- | nixos/features/gui/apps/virtualbox.nix | 8 | ||||
| -rw-r--r-- | nixos/features/gui/apps/vmware.nix | 8 |
3 files changed, 47 insertions, 0 deletions
diff --git a/nixos/features/gui/apps/steam.nix b/nixos/features/gui/apps/steam.nix new file mode 100644 index 0000000..046b814 --- /dev/null +++ b/nixos/features/gui/apps/steam.nix @@ -0,0 +1,31 @@ +{ + config, + pkgs, + lib, + ... +}: let + cfg = config.features.gui.apps.steam; +in { + options.features.gui.apps.steam.enable = lib.mkEnableOption "steam"; + config = lib.mkIf cfg.enable { + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + gamescopeSession.enable = true; + protontricks.enable = true; + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; + }; + hardware.steam-hardware.enable = true; + programs.gamemode.enable = true; + environment.systemPackages = [pkgs.mangohud]; + + # Steam Launch Options + # Add this to 3D games: + # LD_PRELOAD="" gamescope --force-grab-cursor --backend sdl -bf -W 1600 -H 900 -- %command% + # Add this to 2D games: + # LD_PRELOAD="" gamescope -bf -W 1600 -H 900 -- %command% + }; +} diff --git a/nixos/features/gui/apps/virtualbox.nix b/nixos/features/gui/apps/virtualbox.nix new file mode 100644 index 0000000..0b633c7 --- /dev/null +++ b/nixos/features/gui/apps/virtualbox.nix @@ -0,0 +1,8 @@ +{ config, lib, ... }: let + cfg = config.features.gui.apps.virtualbox; +in { + options.features.gui.apps.virtualbox.enable = lib.mkEnableOption "virtualbox"; + config = lib.mkIf cfg.enable { + virtualisation.virtualbox.host.enable = true; + }; +} diff --git a/nixos/features/gui/apps/vmware.nix b/nixos/features/gui/apps/vmware.nix new file mode 100644 index 0000000..4da3f09 --- /dev/null +++ b/nixos/features/gui/apps/vmware.nix @@ -0,0 +1,8 @@ +{ config, lib, ... }: let + cfg = config.features.gui.apps.vmware; +in { + options.features.gui.apps.vmware.enable = lib.mkEnableOption "vmware"; + config = lib.mkIf cfg.enable { + virtualisation.vmware.host.enable = true; + }; +} |
