Nixos: Enable linux zen only on desktop
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
@ -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."/" = {
|
||||||
|
Reference in New Issue
Block a user