1

Nixos: Enable linux zen only on desktop

This commit is contained in:
2024-07-06 21:27:25 +02:00
parent 989846165a
commit e5facd6a9e
3 changed files with 17 additions and 3 deletions

View File

@ -87,7 +87,8 @@ with mylib.networking; {
# Bootloader/Kernel stuff # Bootloader/Kernel stuff
boot = { boot = {
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_latest;
# kernelPackages = pkgs.linuxPackages_zen; # NOTE: Only set for nixinator
# kernelPackages = pkgs.linuxPackages_latest; # The package set that includes the kernel and modules # kernelPackages = pkgs.linuxPackages_latest; # The package set that includes the kernel and modules
kernelParams = ["mitigations=off"]; # I don't care about security regarding spectre/meltdown kernelParams = ["mitigations=off"]; # I don't care about security regarding spectre/meltdown

View File

@ -88,6 +88,10 @@
# # musnix.soundcardPciId = ; # # musnix.soundcardPciId = ;
# }; # };
boot = {
kernelPackages = pkgs.linuxPackages_zen;
};
services.xserver = { services.xserver = {
# Configure keymap in X11 # Configure keymap in X11
xkb.layout = "us"; xkb.layout = "us";

View File

@ -16,8 +16,17 @@
initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"]; initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
initrd.kernelModules = []; initrd.kernelModules = [];
kernelModules = ["kvm-intel"]; kernelModules = ["kvm-intel"];
extraModulePackages = with config.boot.kernelPackages; [ extraModulePackages = with config.boot.kernelPackages; [];
]; # NOTE: Didn't work with Zen, switched to regular kernel instead
# kernelPatches = [
# {
# name = "ipeth";
# patch = null;
# extraConfig = ''
# USB_IPHETH y
# '';
# }
# ];
}; };
fileSystems."/" = { fileSystems."/" = {