Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- config,
- lib,
- pkgs,
- ...
- }:
- let
- cfg = config.hydenix.gaming;
- in
- {
- options.hydenix.gaming = {
- enable = lib.mkOption {
- type = lib.types.bool;
- default = config.hydenix.enable;
- description = "Enable gaming module";
- };
- };
- # config = lib.mkIf cfg.enable {
- # environment.systemPackages = with pkgs; [
- # mangohud # Performance monitoring overlay for games
- # lutris # Game manager for Linux
- # ];
- config = lib.mkIf cfg.enable {
- home.packages = with pkgs; [
- mangohud
- lutris
- steam # tylko klient Steam, nie NixOS module
- #gamescope
- ];
- programs.gamescope = {
- enable = true;
- capSysNice = true;
- };
- programs.steam = {
- enable = true;
- remotePlay.openFirewall = true;
- dedicatedServer.openFirewall = true;
- gamescopeSession.enable = true;
- localNetworkGameTransfers.openFirewall = true;
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment