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

@@ -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;
};