Skip to content

Commit

Permalink
Add gamemode
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Dec 26, 2023
1 parent 4d7a1ba commit 2b0d7c5
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions nixos/roles/gaming/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,21 @@ in
};

config = mkIf cfg.enable {
programs.steam = {
enable = true;
dedicatedServer.openFirewall = true;
remotePlay.openFirewall = true;
programs = {
gamemode = {
enable = true;
settings = {
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
steam = {
enable = true;
dedicatedServer.openFirewall = true;
remotePlay.openFirewall = true;
};
};

# Xbox controller
Expand Down

0 comments on commit 2b0d7c5

Please sign in to comment.