This commit is contained in:
Jimbo 2024-12-15 17:51:29 -05:00
parent 3ab12d4a1f
commit 2d3d4bcc2b
5 changed files with 17 additions and 4 deletions

View file

@ -1,8 +1,12 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
boot = { boot = {
kernelPackages = pkgs.unstable.linuxPackages_latest; kernelPackages = pkgs.unstable.linuxPackages_latest;
kernel.sysctl."vm.max_map_count" = 2147483642;
blacklistedKernelModules = [ "pcspkr" ]; blacklistedKernelModules = [ "pcspkr" ];
}; };
# Kernel that won't explode the MacBook Air
specialisation.nouveau.configuration.config = {
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_5_10;
};
} }

View file

@ -17,7 +17,6 @@ in {
boot = { boot = {
# Must be Zen for IOMMU isolation # Must be Zen for IOMMU isolation
kernelPackages = pkgs.unstable.linuxPackages_zen; kernelPackages = pkgs.unstable.linuxPackages_zen;
kernel.sysctl."vm.max_map_count" = 2147483642;
kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ]; kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
blacklistedKernelModules = [ "pcspkr" ]; blacklistedKernelModules = [ "pcspkr" ];
@ -42,6 +41,6 @@ in {
specialisation.nouveau.configuration.config = { specialisation.nouveau.configuration.config = {
system.video.nvidia.enable = lib.mkForce false; system.video.nvidia.enable = lib.mkForce false;
system.video.nouveau.enable = lib.mkForce true; system.video.nouveau.enable = lib.mkForce true;
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkForce "0"; environment.sessionVariables.NIXOS_OZONE_WL = lib.mkForce "";
}; };
} }

View file

@ -5,4 +5,9 @@
./services ./services
./systemd ./systemd
]; ];
boot.kernel.sysctl = {
"vm.max_map_count" = 2147483642;
"kernel.sysrq" = 1;
};
} }

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./displaymanager ./displaymanager
./earlyoom
./gnome-keyring ./gnome-keyring
./gvfs ./gvfs
./keyd ./keyd

View file

@ -0,0 +1,4 @@
{ ... }:
{
services.earlyoom.enable = true;
}