From ccb578cace7bb0d7bc4028d23d047174118800ef Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 22 Mar 2025 20:23:07 +0100 Subject: [PATCH] perso-desktop: Use mesa-git and RC linux kernel To get all current patches for RX 9070XT --- flake.lock | 126 ++++++++++++++++++++++++++ flake.nix | 10 +- hosts/perso-desktop/configuration.nix | 5 +- 3 files changed, 139 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index f3878d9..7844f40 100644 --- a/flake.lock +++ b/flake.lock @@ -27,6 +27,33 @@ "type": "github" } }, + "chaotic": { + "inputs": { + "fenix": "fenix", + "flake-schemas": "flake-schemas", + "home-manager": [ + "home-manager" + ], + "jovian": "jovian", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1742647741, + "narHash": "sha256-hli9R2OONaRpyV5teQk+g73oBNQXFbKAZTHVY+AhKDI=", + "owner": "chaotic-cx", + "repo": "nyx", + "rev": "f44e30fb15f34b57b741124448e959b2cae38eb8", + "type": "github" + }, + "original": { + "owner": "chaotic-cx", + "ref": "nyxpkgs-unstable", + "repo": "nyx", + "type": "github" + } + }, "crane": { "locked": { "lastModified": 1731098351, @@ -230,6 +257,28 @@ "type": "github" } }, + "fenix": { + "inputs": { + "nixpkgs": [ + "chaotic", + "nixpkgs" + ], + "rust-analyzer-src": "rust-analyzer-src" + }, + "locked": { + "lastModified": 1742452566, + "narHash": "sha256-sVuLDQ2UIWfXUBbctzrZrXM2X05YjX08K7XHMztt36E=", + "owner": "nix-community", + "repo": "fenix", + "rev": "7d9ba794daf5e8cc7ee728859bc688d8e26d5f06", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "fenix", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -322,6 +371,20 @@ "type": "github" } }, + "flake-schemas": { + "locked": { + "lastModified": 1721999734, + "narHash": "sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw=", + "rev": "0a5c42297d870156d9c57d8f99e476b738dcd982", + "revCount": 75, + "type": "tarball", + "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.1.5.tar.gz" + } + }, "flake-utils": { "inputs": { "systems": [ @@ -419,6 +482,28 @@ "type": "github" } }, + "jovian": { + "inputs": { + "nix-github-actions": "nix-github-actions", + "nixpkgs": [ + "chaotic", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1742465245, + "narHash": "sha256-gpjtkoeq5Ye9J8GoR+rWg3NL4bbEtcLvvF4nN6MtxdU=", + "owner": "Jovian-Experiments", + "repo": "Jovian-NixOS", + "rev": "a95606cae5c9e1f5b84debe7865ef171d4deb287", + "type": "github" + }, + "original": { + "owner": "Jovian-Experiments", + "repo": "Jovian-NixOS", + "type": "github" + } + }, "lanzaboote": { "inputs": { "crane": "crane", @@ -572,6 +657,29 @@ "type": "github" } }, + "nix-github-actions": { + "inputs": { + "nixpkgs": [ + "chaotic", + "jovian", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729697500, + "narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=", + "owner": "zhaofengli", + "repo": "nix-github-actions", + "rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf", + "type": "github" + }, + "original": { + "owner": "zhaofengli", + "ref": "matrix-name", + "repo": "nix-github-actions", + "type": "github" + } + }, "nix-straight": { "flake": false, "locked": { @@ -2874,6 +2982,7 @@ "root": { "inputs": { "agenix": "agenix", + "chaotic": "chaotic", "disko": "disko", "flake-utils": "flake-utils", "home-manager": "home-manager", @@ -2904,6 +3013,23 @@ "type": "github" } }, + "rust-analyzer-src": { + "flake": false, + "locked": { + "lastModified": 1742296961, + "narHash": "sha256-gCpvEQOrugHWLimD1wTFOJHagnSEP6VYBDspq96Idu0=", + "owner": "rust-lang", + "repo": "rust-analyzer", + "rev": "15d87419f1a123d8f888d608129c3ce3ff8f13d4", + "type": "github" + }, + "original": { + "owner": "rust-lang", + "ref": "nightly", + "repo": "rust-analyzer", + "type": "github" + } + }, "rust-overlay": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index b0b46d0..a701182 100644 --- a/flake.nix +++ b/flake.nix @@ -65,6 +65,12 @@ url = "github:notashelf/nvf/v0.7"; inputs.nixpkgs.follows = "nixpkgs"; }; + + chaotic = { + url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.home-manager.follows = "home-manager"; + }; }; outputs = inputs @ { @@ -75,6 +81,7 @@ lanzaboote, disko, nvf, + chaotic, ... }: let home-modules = with inputs; [ @@ -102,7 +109,8 @@ agenix.nixosModules.default lanzaboote.nixosModules.lanzaboote disko.nixosModules.disko - {nixpkgs.overlays = overlays;} + chaotic.nixosModules.default + { nixpkgs.overlays = overlays; } { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; diff --git a/hosts/perso-desktop/configuration.nix b/hosts/perso-desktop/configuration.nix index 4e83732..5a0eeb4 100644 --- a/hosts/perso-desktop/configuration.nix +++ b/hosts/perso-desktop/configuration.nix @@ -45,7 +45,7 @@ hardware = { bluetooth.enable = true; - gamingKernel.enable = true; + # gamingKernel.enable = true; # Temporary disable to use latest linux kernel (amdgpu fixes) keymaps.layout = "us"; graphics.amdgpu.enable = true; audio.pipewire.enable = true; @@ -57,4 +57,7 @@ enable = true; package = pkgs.openrgb-with-all-plugins; }; + + chaotic.mesa-git.enable = true; + boot.kernelPackages = pkgs.linuxPackages_cachyos-rc; }