diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-05-26 22:55:43 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-26 23:16:14 -0400 |
| commit | ef9d427eea09d6e6bbd04b1774b72fba784f3cd8 (patch) | |
| tree | 5ea006dbe11c670fe7a95ecd3fe297b23df9d246 | |
| parent | package and use CachyOS-Settings (diff) | |
| download | dotfiles-nix-ef9d427eea09d6e6bbd04b1774b72fba784f3cd8.tar.gz dotfiles-nix-ef9d427eea09d6e6bbd04b1774b72fba784f3cd8.tar.bz2 dotfiles-nix-ef9d427eea09d6e6bbd04b1774b72fba784f3cd8.zip | |
use CachyOS kernel
| -rw-r--r-- | flake.lock | 141 | ||||
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | system/default.nix | 6 | ||||
| -rw-r--r-- | system/gaming/default.nix | 7 |
4 files changed, 142 insertions, 14 deletions
@@ -61,6 +61,38 @@ "type": "github" } }, + "cachyos-kernel": { + "flake": false, + "locked": { + "lastModified": 1779553635, + "narHash": "sha256-ar7KGDmSmGQlKWH4aHC61K+VFxu1wxA/HcgIBDxHwOQ=", + "owner": "CachyOS", + "repo": "linux-cachyos", + "rev": "f2c7d18505bc35a89a8d5fcab25671168684e7dd", + "type": "github" + }, + "original": { + "owner": "CachyOS", + "repo": "linux-cachyos", + "type": "github" + } + }, + "cachyos-kernel-patches": { + "flake": false, + "locked": { + "lastModified": 1779618819, + "narHash": "sha256-/cGZZCyJZS1QATHi+/2Q32NkjrYN2N2PpgFP8Ak4FJc=", + "owner": "CachyOS", + "repo": "kernel-patches", + "rev": "668b466fb461409329425b50c4a9d8d2c022a739", + "type": "github" + }, + "original": { + "owner": "CachyOS", + "repo": "kernel-patches", + "type": "github" + } + }, "caelestia-cli": { "inputs": { "caelestia-shell": [ @@ -144,6 +176,22 @@ "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_4": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", "owner": "edolstra", "repo": "flake-compat", "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", @@ -173,6 +221,24 @@ "type": "github" } }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_2" + }, + "locked": { + "lastModified": 1778716662, + "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems_2" @@ -193,7 +259,7 @@ }, "git-hooks": { "inputs": { - "flake-compat": "flake-compat_2", + "flake-compat": "flake-compat_3", "gitignore": "gitignore_2", "nixpkgs": [ "nix-gaming", @@ -653,9 +719,32 @@ "type": "github" } }, - "nix-gaming": { + "nix-cachyos-kernel": { "inputs": { + "cachyos-kernel": "cachyos-kernel", + "cachyos-kernel-patches": "cachyos-kernel-patches", + "flake-compat": "flake-compat_2", "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1779648267, + "narHash": "sha256-nAZ40ZbLLjTPNZwaxpq5p+VsKLY3pW3uogBQVjtP7yU=", + "owner": "xddxdd", + "repo": "nix-cachyos-kernel", + "rev": "bba6e2370bc269b59c0ae42c6d295ca71e770b2f", + "type": "github" + }, + "original": { + "owner": "xddxdd", + "ref": "release", + "repo": "nix-cachyos-kernel", + "type": "github" + } + }, + "nix-gaming": { + "inputs": { + "flake-parts": "flake-parts_2", "git-hooks": "git-hooks", "nixpkgs": [ "nixpkgs" @@ -693,7 +782,7 @@ }, "nixos-wsl": { "inputs": { - "flake-compat": "flake-compat_3", + "flake-compat": "flake-compat_4", "nixpkgs": [ "nixpkgs" ] @@ -714,16 +803,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1779560665, - "narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=", - "owner": "nixos", + "lastModified": 1779630130, + "narHash": "sha256-RWn/gMXEy+p6yL5lKh51Z/w6RHC+5Px18Tarkuva99Y=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786", + "rev": "68ac0b94b449482d8a90f3e3791d61a8ee186f07", "type": "github" }, "original": { - "owner": "nixos", - "ref": "nixos-unstable", + "owner": "NixOS", + "ref": "nixos-unstable-small", "repo": "nixpkgs", "type": "github" } @@ -743,6 +832,37 @@ "type": "github" } }, + "nixpkgs-lib_2": { + "locked": { + "lastModified": 1777168982, + "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1779560665, + "narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "ny": { "flake": false, "locked": { @@ -807,10 +927,11 @@ "hy3": "hy3", "hyprland": "hyprland", "hyprland-plugins": "hyprland-plugins", + "nix-cachyos-kernel": "nix-cachyos-kernel", "nix-gaming": "nix-gaming", "nixos-hardware": "nixos-hardware", "nixos-wsl": "nixos-wsl", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "sops-nix": "sops-nix", "talc": "talc" } @@ -36,6 +36,8 @@ # nix-gaming nix-gaming.url = "github:fufexan/nix-gaming"; nix-gaming.inputs.nixpkgs.follows = "nixpkgs"; + # nix-cachyos-kernel + nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; }; outputs = { diff --git a/system/default.nix b/system/default.nix index f8101c8..e52896f 100644 --- a/system/default.nix +++ b/system/default.nix @@ -62,6 +62,7 @@ in { (_: _: inputs.hy3.packages.${system}) # gaming (_: _: inputs.nix-gaming.packages.${system}) + inputs.nix-cachyos-kernel.overlays.pinned # misc (_: _: inputs.talc.packages.${system}) (_: _: inputs.apple-fonts.packages.${system}) @@ -141,10 +142,7 @@ in { }; # use the latest kernel - boot.kernelPackages = - if config.gaming.enable - then pkgs.linuxPackages_xanmod_latest - else pkgs.linuxPackages_latest; + boot.kernelPackages = pkgs.linuxPackages_latest; # sysrq boot.kernel.sysctl."kernel.sysrq" = 246; diff --git a/system/gaming/default.nix b/system/gaming/default.nix index ca97345..8ecb570 100644 --- a/system/gaming/default.nix +++ b/system/gaming/default.nix @@ -22,6 +22,13 @@ in { "nowatchdog" ]; + # cachyos kernel + boot.kernelPackages = lib.mkForce pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4; + nix.settings = { + substituters = ["https://attic.xuyh0120.win/lantian"]; + trusted-public-keys = ["lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="]; + }; + programs.wine = { enable = true; package = pkgs.wineWow64Packages.staging; |