Update FredOS-Gaming.nix

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

View file

@ -1,11 +1,12 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
  config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {   { config, pkgs, lib, ... }:
# The module is returning the result of lib.mkIf, which is a config attribute set.
(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
        # We access the i686-linux architecture set:
        lib32 = pkgs.pkgsi686Linux.pkgs;         lib32 = pkgs.pkgsi686Linux.pkgs;
      };       };
    };     };
@ -15,10 +16,16 @@
      adwaita-icon-theme       adwaita-icon-theme
      nix-index       nix-index
      libdecor       libdecor
      pkgs.lib32.libdecor # CORRECTED LINE       pkgs.lib32.libdecor # The fixed lib32 reference
    ];     ];
    # Enables Vulkan and OpenGL drivers # ... all other configuration attributes ...
# The end of the attributes set:
# (The outer parentheses close the `lib.mkIf` expression)
})
# Enables Vulkan and OpenGL drivers
    hardware.graphics = {     hardware.graphics = {
      enable = true;       enable = true;
      enable32Bit = true;       enable32Bit = true;