diff --git a/clan.nix b/clan.nix index 7b5c4e2..f45ab25 100644 --- a/clan.nix +++ b/clan.nix @@ -20,7 +20,6 @@ tags = [ "desktop" "spain" - "gaming" ]; }; frues-surface3 = { diff --git a/machines/frues-pc/configuration.nix b/machines/frues-pc/configuration.nix index 3c08496..e2d964f 100644 --- a/machines/frues-pc/configuration.nix +++ b/machines/frues-pc/configuration.nix @@ -1,5 +1,4 @@ -{ ... }: -{ +{...}: { imports = [ ./disks.nix ../../modules/desktop/hyprland.nix @@ -20,7 +19,13 @@ }; }; - services.sunshine.autoStart = true; + # It is an open-source implementation of Nvidia’s Moonlight game streaming application + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; home-manager.users.pedro.wayland.windowManager.hyprland.settings = { monitor = [ diff --git a/modules/desktop/gaming.nix b/modules/desktop/gaming.nix index 29e7639..314810c 100644 --- a/modules/desktop/gaming.nix +++ b/modules/desktop/gaming.nix @@ -1,21 +1,11 @@ -{ pkgs, lib, ... }: -{ +{...}: { programs.steam = { enable = true; remotePlay.openFirewall = true; dedicatedServer.openFirewall = false; }; - environment.systemPackages = [ pkgs.gamescope ]; - programs.gamemode.enable = true; services.joycond.enable = true; - - services.sunshine = { - enable = true; - autoStart = lib.mkDefault false; - capSysAdmin = true; - openFirewall = true; - }; }