Update FredOS-Gaming.nix

This commit is contained in:
ediblerope 2025-12-09 15:48:18 +00:00 committed by GitHub
parent ce16618eca
commit dd4511a298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,56 +1,54 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {   config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
nixpkgs.config.packageOverrides = pkgs: {     nixpkgs.config.packageOverrides = pkgs: {
pkgs = pkgs // {       pkgs = pkgs // {
# This is where you pull in 32-bit packages         # This is where you pull in 32-bit packages
# We access the i686-linux architecture set:         # We access the i686-linux architecture set:
lib32 = pkgs.pkgsi686Linux.pkgs;         lib32 = pkgs.pkgsi686Linux.pkgs;
};       };
};     };
environment.systemPackages = with pkgs; [
lutris
adwaita-icon-theme # Helps with missing cursors/icons in some Wine games
nix-index
libdecor
lib32.libdecor
];
# Enables Vulkan and OpenGL drivers     environment.systemPackages = with pkgs; [
hardware.graphics = {       lutris
enable = true;       adwaita-icon-theme
enable32Bit = true;       nix-index
};       libdecor
      pkgs.lib32.libdecor # CORRECTED LINE
    ];
    # Enables Vulkan and OpenGL drivers
    hardware.graphics = {
      enable = true;
      enable32Bit = true;
    };
programs.steam = {     programs.steam = {
enable = true;       enable = true;
remotePlay.openFirewall = true;       remotePlay.openFirewall = true;
package = pkgs.steam.override {       package = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [         extraPkgs = pkgs: with pkgs; [
kdePackages.breeze           kdePackages.breeze
];         ];
};       };
};     };
# Set libdecor plugin directory     # Set libdecor plugin directory (using the 64-bit path for the session)
environment.sessionVariables = {     environment.sessionVariables = {
LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";       LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";
GTK_PATH = "${pkgs.gtk3}/lib/gtk-3.0:${pkgs.gtk4}/lib/gtk-4.0";       GTK_PATH = "${pkgs.gtk3}/lib/gtk-3.0:${pkgs.gtk4}/lib/gtk-4.0";
};     };
system.autoUpgrade = {     system.autoUpgrade = {
enable = true;       enable = true;
dates = "daily";       dates = "daily";
persistent = true;       persistent = true;
allowReboot = false;       allowReboot = false;
flags = [       flags = [
"--upgrade"         "--upgrade"
"--option" "tarball-ttl" "0"         "--option" "tarball-ttl" "0"
];       ];
};     };
};   };
} }