Update FredOS-Gaming.nix

This commit is contained in:
ediblerope 2025-12-09 15:50:46 +00:00 committed by GitHub
parent 6e8e12a575
commit f16a880c19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
})