feat(core): add cachyos kernel and configure hosts

This commit is contained in:
tux
2026-09-20 04:00:22 +05:30
parent 30a5cfad04
commit 8df547dd8b
10 changed files with 153 additions and 56 deletions

View File

@@ -36,6 +36,7 @@
};
};
cachyos-kernel = inputs.nix-cachyos-kernel.overlays.pinned;
nur = inputs.nur.overlays.default;
copyparty = inputs.copyparty.overlays.default;
llm-agents = inputs.llm-agents.overlays.shared-nixpkgs;

View File

@@ -1,5 +1,6 @@
{
flake.modules.nixos.alpha = {
pkgs,
lib,
modulesPath,
system,
@@ -9,6 +10,7 @@
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.kernelPackages = pkgs.linuxPackages_zen;
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault system;
};

View File

@@ -9,6 +9,7 @@
hardware
];
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-zen4;
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"

View File

@@ -18,6 +18,7 @@
inputs.cardwire.nixosModules.default
];
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-bore-lto-x86_64-v3;
boot.kernelParams = ["nvidia-drm.modeset=1"];
boot.initrd.availableKernelModules = [
"nvme"

View File

@@ -17,6 +17,7 @@
inputs.cardwire.nixosModules.default
];
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-bore-lto-x86_64-v3;
boot.kernelParams = ["nvidia-drm.modeset=1"];
boot.initrd.availableKernelModules = [
"nvme"

View File

@@ -1,5 +1,6 @@
{
flake.modules.nixos.vps = {
pkgs,
lib,
modulesPath,
system,
@@ -9,6 +10,7 @@
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.kernelPackages = pkgs.linuxPackages_zen;
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault system;
};

View File

@@ -1,9 +1,8 @@
{
flake.modules.nixos.boot = {pkgs, ...}: {
flake.modules.nixos.boot = {
boot = {
consoleLogLevel = 0;
initrd.verbose = false;
kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = ["ntfs"];
};
};

View File

@@ -14,6 +14,7 @@
"https://lan-mouse.cachix.org"
"https://wezterm.cachix.org"
"https://cache.nixos-cuda.org"
"https://attic.xuyh0120.win/lantian"
];
trusted-substituters = [
"https://nix-on-droid.cachix.org"
@@ -32,6 +33,7 @@
"lan-mouse.cachix.org-1:KlE2AEZUgkzNKM7BIzMQo8w9yJYqUpor1CAUNRY6OyM="
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
];
extra-substituters = ["https://cache.numtide.com"];
extra-trusted-public-keys = [