diff --git a/flake.lock b/flake.lock index 1336012..32d1a74 100644 --- a/flake.lock +++ b/flake.lock @@ -161,6 +161,22 @@ } }, "flake-compat_4": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "NixOS", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_5": { "locked": { "lastModified": 1733328505, "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", @@ -210,6 +226,24 @@ "type": "github" } }, + "flake-parts_3": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_3" + }, + "locked": { + "lastModified": 1782949081, + "narHash": "sha256-vp6Y/Grm98ESt6ceOkWiHWyZRDV3J1RID4w+6NWK9yA=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -372,6 +406,26 @@ "type": "github" } }, + "nix-cachyos-kernel": { + "inputs": { + "flake-compat": "flake-compat_3", + "flake-parts": "flake-parts_2", + "nixpkgs": "nixpkgs_7" + }, + "locked": { + "lastModified": 1785302044, + "narHash": "sha256-r5/EBWjE58+7k8D8KD7Xj2OzrJ6Qak3QOqJVyCcFLy0=", + "owner": "xddxdd", + "repo": "nix-cachyos-kernel", + "rev": "3ca5db0202822769c2f0b96dfb8eab8c95484795", + "type": "github" + }, + "original": { + "owner": "xddxdd", + "repo": "nix-cachyos-kernel", + "type": "github" + } + }, "nix-darwin": { "inputs": { "nixpkgs": [ @@ -411,10 +465,10 @@ }, "nix-gaming": { "inputs": { - "flake-compat": "flake-compat_3", - "flake-parts": "flake-parts_2", + "flake-compat": "flake-compat_4", + "flake-parts": "flake-parts_3", "git-hooks": "git-hooks_2", - "nixpkgs": "nixpkgs_7" + "nixpkgs": "nixpkgs_8" }, "locked": { "lastModified": 1785207248, @@ -476,6 +530,21 @@ "type": "github" } }, + "nixpkgs-lib_3": { + "locked": { + "lastModified": 1782614948, + "narHash": "sha256-ePjCwr1sNm9NYUqywL7QfK3JnlS015msC+eBu2zKlp8=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "db3f255737b94216eb71cce308e2912cf6bc2d7c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, "nixpkgs-unstable": { "locked": { "lastModified": 1785090369, @@ -510,9 +579,9 @@ }, "nixpkgs-xr": { "inputs": { - "flake-compat": "flake-compat_4", + "flake-compat": "flake-compat_5", "flake-utils": "flake-utils_2", - "nixpkgs": "nixpkgs_9", + "nixpkgs": "nixpkgs_10", "nvfetcher": "nvfetcher", "systems": "systems_2", "treefmt-nix": "treefmt-nix_2" @@ -547,6 +616,22 @@ "type": "github" } }, + "nixpkgs_11": { + "locked": { + "lastModified": 1785090369, + "narHash": "sha256-m0pDuRJG7EDo9ri+4Ksu83VsI+PlxNC9lNBfydejce4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "624af665418d3c65d544145b4d34ad696439570e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1784497964, @@ -628,6 +713,22 @@ } }, "nixpkgs_7": { + "locked": { + "lastModified": 1785210918, + "narHash": "sha256-uY/UYA3tWnXga7h0xSuwGWvpu0Fl1LrKVu2l7DY4JR4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "29a3e341634615ff16f700e9a1fdbc9c42f0198c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_8": { "locked": { "lastModified": 1784872115, "narHash": "sha256-THPEF2po0fsoH8gNtp+Ae0XFDJH3N/ol7xO3v6VMTJU=", @@ -643,7 +744,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_9": { "locked": { "lastModified": 1785133411, "narHash": "sha256-Yjv0WEg39KRYS0rBdTbu6Fc/or/ihAKk13W9sQ6VWd0=", @@ -659,22 +760,6 @@ "type": "github" } }, - "nixpkgs_9": { - "locked": { - "lastModified": 1785090369, - "narHash": "sha256-m0pDuRJG7EDo9ri+4Ksu83VsI+PlxNC9lNBfydejce4=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "624af665418d3c65d544145b4d34ad696439570e", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nvfetcher": { "inputs": { "flake-compat": [ @@ -746,10 +831,11 @@ "home-manager": "home-manager", "lazyvim": "lazyvim", "millennium": "millennium", + "nix-cachyos-kernel": "nix-cachyos-kernel", "nix-darwin": "nix-darwin", "nix-flatpak": "nix-flatpak", "nix-gaming": "nix-gaming", - "nixpkgs": "nixpkgs_8", + "nixpkgs": "nixpkgs_9", "nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-xr": "nixpkgs-xr", "scopebuddy": "scopebuddy" @@ -774,7 +860,7 @@ }, "scopebuddy": { "inputs": { - "nixpkgs": "nixpkgs_10" + "nixpkgs": "nixpkgs_11" }, "locked": { "lastModified": 1784658606, diff --git a/flake.nix b/flake.nix index cf848a1..7e8bbb8 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,8 @@ scopebuddy.url = "github:HikariKnight/ScopeBuddy"; nix-gaming.url = "github:fufexan/nix-gaming"; nixpkgs-xr.url = "github:nix-community/nixpkgs-xr"; + + nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel"; }; outputs = @@ -42,6 +44,7 @@ affinity-nix, affinity-thumbnailer-kde, millennium, + nix-cachyos-kernel, ... }: let diff --git a/hosts/shared/nixos.nix b/hosts/shared/nixos.nix index cd2f041..bcf2310 100644 --- a/hosts/shared/nixos.nix +++ b/hosts/shared/nixos.nix @@ -19,6 +19,9 @@ in consoleLogLevel = 3; + # Use latest LTO optimized x86_64-v3 kernel from CachyOS. + kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v3; + extraModulePackages = [ config.boot.kernelPackages.kvmfr ]; kernelParams = [ @@ -257,8 +260,8 @@ in nixpkgs = { config.allowUnfree = true; overlays = [ - # Disable temporarily as CDN is down for downloads causing build failures. inputs.affinity-nix.overlays.default + inputs.nix-cachyos-kernel.overlays.default ]; };