From 77e32070bddce5fbf9b2fda930971512771af142 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Tue, 9 Dec 2025 15:51:15 +0000 Subject: [PATCH] Update FredOS-Gaming.nix --- hosts/FredOS-Gaming.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index d6c2c44..5f506d1 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -1,29 +1,35 @@ { config, pkgs, lib, ... }: -# Start the conditional expression wrapping the entire attribute set +# The outer curly braces define the attribute set returned by the module. +# Since we are using lib.mkIf, we'll use lib.mkMerge to allow the attribute set +# to be merged with any other configuration (if you had other files). +# The simplest approach is often to wrap the *entire* definition in lib.mkIf. + (lib.mkIf (config.networking.hostName == "FredOS-Gaming") { +    # 1. Define the 32-bit package set (lib32)     nixpkgs.config.packageOverrides = pkgs: {       pkgs = pkgs // { -        # This is where you pull in 32-bit packages         lib32 = pkgs.pkgsi686Linux.pkgs;       };     };      +    # 2. Use the packages     environment.systemPackages = with pkgs; [       lutris       adwaita-icon-theme       nix-index       libdecor -      pkgs.lib32.libdecor # FIXED: Access lib32 via pkgs. +      pkgs.lib32.libdecor # <--- CORRECT: Access via pkgs.lib32     ]; -    # Enables Vulkan and OpenGL drivers +    # 3. Graphics configuration     hardware.graphics = {       enable = true;       enable32Bit = true;     }; +    # 4. Steam configuration     programs.steam = {       enable = true;       remotePlay.openFirewall = true; @@ -34,12 +40,13 @@       };     }; -    # Set libdecor plugin directory +    # 5. Environment Variables     environment.sessionVariables = {       LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";       GTK_PATH = "${pkgs.gtk3}/lib/gtk-3.0:${pkgs.gtk4}/lib/gtk-4.0";     }; +    # 6. Auto-Upgrade configuration     system.autoUpgrade = {       enable = true;       dates = "daily"; @@ -50,6 +57,5 @@         "--option" "tarball-ttl" "0"       ];     }; - -# End the conditional expression +# This closing brace and parenthesis ends the attribute set and the lib.mkIf function call })