From f16a880c1948f0c6bdbfb10ba6fdd33c78689b84 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Tue, 9 Dec 2025 15:50:46 +0000 Subject: [PATCH] Update FredOS-Gaming.nix --- hosts/FredOS-Gaming.nix | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 418d3e2..d6c2c44 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -1,31 +1,24 @@ { config, pkgs, lib, ... }: -{ -  { config, pkgs, lib, ... }: -# The module is returning the result of lib.mkIf, which is a config attribute set. +# Start the conditional expression wrapping the entire attribute set (lib.mkIf (config.networking.hostName == "FredOS-Gaming") {     nixpkgs.config.packageOverrides = pkgs: {       pkgs = pkgs // { +        # This is where you pull in 32-bit packages         lib32 = pkgs.pkgsi686Linux.pkgs;       };     }; - +         environment.systemPackages = with pkgs; [       lutris       adwaita-icon-theme       nix-index       libdecor -      pkgs.lib32.libdecor # The fixed lib32 reference +      pkgs.lib32.libdecor # FIXED: Access lib32 via pkgs.     ]; - - # ... all other configuration attributes ... - # The end of the attributes set: - # (The outer parentheses close the `lib.mkIf` expression) - }) - - # Enables Vulkan and OpenGL drivers +    # Enables Vulkan and OpenGL drivers     hardware.graphics = {       enable = true;       enable32Bit = true; @@ -41,7 +34,7 @@       };     }; -    # Set libdecor plugin directory (using the 64-bit path for the session) +    # Set libdecor plugin directory     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"; @@ -57,5 +50,6 @@         "--option" "tarball-ttl" "0"       ];     }; -  }; -} + +# End the conditional expression +})