nixos/hosts/FredOS-Gaming.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2025-12-02 21:21:42 +00:00
{ config, pkgs, lib, ... }:
{
2025-12-09 13:00:24 +00:00
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
environment.systemPackages = with pkgs; [
lutris
2025-12-09 13:00:51 +00:00
adwaita-icon-theme # Helps with missing cursors/icons in some Wine games
2025-12-09 13:00:24 +00:00
];
2025-12-09 13:06:06 +00:00
# Enable the Gamescope Module
2025-12-09 13:00:24 +00:00
programs.gamescope = {
enable = true;
2025-12-09 13:07:28 +00:00
capSysNice = false;
2025-12-09 13:00:24 +00:00
# args = [ "--rt" ]; # Optional: Force realtime priority
};
2025-12-09 13:06:06 +00:00
# Enables Vulkan and OpenGL drivers
hardware.graphics = {
enable = true;
enable32Bit = true;
};
2025-12-09 13:00:24 +00:00
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
package = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
2025-12-04 13:32:18 +00:00
kdePackages.breeze
2025-12-09 13:00:24 +00:00
libgdiplus # Often helps with Wine UI rendering
2025-12-04 13:32:18 +00:00
];
2025-12-09 13:00:24 +00:00
};
};
2025-12-09 13:14:16 +00:00
# Set libdecor plugin directory
environment.sessionVariables = {
LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";
};
2025-12-09 13:00:24 +00:00
system.autoUpgrade = {
enable = true;
dates = "daily";
persistent = true;
allowReboot = false;
flags = [
"--upgrade"
"--option" "tarball-ttl" "0"
];
2025-12-04 13:19:11 +00:00
};
};
2025-12-02 21:21:42 +00:00
}