Update FredOS-Gaming.nix

This commit is contained in:
ediblerope 2025-12-09 13:00:24 +00:00 committed by GitHub
parent 4fc734eb2a
commit bf4d8e8fa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,23 +1,26 @@
# hosts/FredOS-Gaming.nix
{ config, pkgs, lib, ... }:
{
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
# List packages installed in system profile. To search, run:
# $ nix search wget
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
environment.systemPackages = with pkgs; [
#Package name
lutris
gamescope
libdecor
dwaita-icon-theme # Helps with missing cursors/icons in some Wine games
];
# 1. Enable the Gamescope Module
programs.gamescope = {
enable = true;
capSysNice = true; # Fixes "No CAP_SYS_NICE" warning implies better performance
# args = [ "--rt" ]; # Optional: Force realtime priority
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
package = pkgs.steam.override {
extraPkgs =
pkgs: with pkgs; [
extraPkgs = pkgs: with pkgs; [
kdePackages.breeze
libgdiplus # Often helps with Wine UI rendering
];
};
};
@ -32,5 +35,5 @@ config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
"--option" "tarball-ttl" "0"
];
};
};
};
}