summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 22:55:43 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-27 07:48:44 -0400
commit8baed291f897d0620faffae39625909efd191ed0 (patch)
tree63d4cfbad85c4f9743e8bd1cb866f6b9a9fc126e
parentpackage and use CachyOS-Settings (diff)
downloaddotfiles-nix-8baed291f897d0620faffae39625909efd191ed0.tar.gz
dotfiles-nix-8baed291f897d0620faffae39625909efd191ed0.tar.bz2
dotfiles-nix-8baed291f897d0620faffae39625909efd191ed0.zip
use CachyOS kernel
-rw-r--r--flake.lock141
-rw-r--r--flake.nix2
-rw-r--r--hosts/shinji/hardware.nix3
-rw-r--r--system/default.nix9
4 files changed, 141 insertions, 14 deletions
diff --git a/flake.lock b/flake.lock
index dedc9f2..5466ffc 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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"
}
diff --git a/flake.nix b/flake.nix
index 9a6dc80..ae851c7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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/hosts/shinji/hardware.nix b/hosts/shinji/hardware.nix
index 1edae37..55f6d0f 100644
--- a/hosts/shinji/hardware.nix
+++ b/hosts/shinji/hardware.nix
@@ -1,5 +1,7 @@
{
config,
+ lib,
+ pkgs,
inputs,
...
}: {
@@ -25,6 +27,7 @@
boot.kernelParams = [];
boot.extraModulePackages = [];
boot.supportedFilesystems = ["ntfs"];
+ boot.kernelPackages = lib.mkForce pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
# supress annoying acpi error msgs
boot.consoleLogLevel = 2;
diff --git a/system/default.nix b/system/default.nix
index f8101c8..a8b384d 100644
--- a/system/default.nix
+++ b/system/default.nix
@@ -42,6 +42,9 @@ in {
experimental-features = ["nix-command" "flakes"];
use-xdg-base-directories = true;
trusted-users = ["root" "@wheel"];
+ # cachyos kernel
+ substituters = ["https://attic.xuyh0120.win/lantian"];
+ trusted-public-keys = ["lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="];
};
# make nice
daemonCPUSchedPolicy = "idle";
@@ -62,6 +65,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 +145,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;