Amakesh

Untitled

Jan 31st, 2026
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. {
  2. config,
  3. lib,
  4. pkgs,
  5. ...
  6. }:
  7.  
  8. let
  9. cfg = config.hydenix.gaming;
  10. in
  11. {
  12. options.hydenix.gaming = {
  13. enable = lib.mkOption {
  14. type = lib.types.bool;
  15. default = config.hydenix.enable;
  16. description = "Enable gaming module";
  17. };
  18. };
  19.  
  20. # config = lib.mkIf cfg.enable {
  21. # environment.systemPackages = with pkgs; [
  22. # mangohud # Performance monitoring overlay for games
  23. # lutris # Game manager for Linux
  24. # ];
  25.  
  26. config = lib.mkIf cfg.enable {
  27. home.packages = with pkgs; [
  28. mangohud
  29. lutris
  30. steam # tylko klient Steam, nie NixOS module
  31. #gamescope
  32. ];
  33.  
  34.  
  35.  
  36. programs.gamescope = {
  37. enable = true;
  38. capSysNice = true;
  39. };
  40.  
  41. programs.steam = {
  42. enable = true;
  43. remotePlay.openFirewall = true;
  44. dedicatedServer.openFirewall = true;
  45. gamescopeSession.enable = true;
  46. localNetworkGameTransfers.openFirewall = true;
  47. };
  48. };
  49. }
Advertisement
Add Comment
Please, Sign In to add comment