From 12b2c483ad3d6eacf8182e7c3537ee910fe76d0c Mon Sep 17 00:00:00 2001 From: NullBite Date: Wed, 28 Feb 2024 09:47:19 -0500 Subject: [PATCH] nullbox: downgrade mesa (MASS REBUILD) --- flake.lock | 17 +++++++++++++++++ flake.nix | 2 ++ hosts/nullbox/configuration.nix | 10 +++++++++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index ecbfe0f..520e8ea 100644 --- a/flake.lock +++ b/flake.lock @@ -244,6 +244,22 @@ "type": "github" } }, + "nixpkgs-mesa-fix": { + "locked": { + "lastModified": 1708100828, + "narHash": "sha256-h6wKqrpRjuLY/lo4HqPti2UL8grxPKnKlcSpqdP9je8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5c01128ec0a607423838f82106b4bd62abc6da9c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5c01128ec0a607423838f82106b4bd62abc6da9c", + "type": "github" + } + }, "nixpkgs-unstable": { "locked": { "lastModified": 1708847675, @@ -301,6 +317,7 @@ "nix-index-database": "nix-index-database", "nix-wsl": "nix-wsl", "nixpkgs": "nixpkgs_2", + "nixpkgs-mesa-fix": "nixpkgs-mesa-fix", "nixpkgs-unstable": "nixpkgs-unstable", "pkg-android-tools": "pkg-android-tools", "rust-overlay": "rust-overlay", diff --git a/flake.nix b/flake.nix index 003cf9f..ff008a2 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,8 @@ # ^^^^^^^^^^^^^ this part is optional nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nixpkgs-mesa-fix.url = "github:NixOS/nixpkgs/5c01128ec0a607423838f82106b4bd62abc6da9c"; + # this seems to be a popular way to declare systems systems.url = "github:nix-systems/default"; diff --git a/hosts/nullbox/configuration.nix b/hosts/nullbox/configuration.nix index 33a19bc..05534d5 100644 --- a/hosts/nullbox/configuration.nix +++ b/hosts/nullbox/configuration.nix @@ -3,7 +3,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { @@ -21,12 +21,20 @@ # nixfiles nixfiles = { + profile.pc.enable = true; + programs.adb.enable = true; common.remoteAccess.enable = true; sessions.plasma.enable = true; hardware.nvidia.modesetting.enable = true; packageSets.gaming.enable = true; }; + nixpkgs.overlays = [ + (final: prev: { + mesa = inputs.nixpkgs-mesa-fix.legacyPackages.${pkgs.system}.mesa; + }) + ]; + # cryptsetup boot.initrd.luks.devices = { lvmroot = {