Changes
This commit is contained in:
parent
3ab12d4a1f
commit
2d3d4bcc2b
8
hosts/extern/boot/default.nix
vendored
8
hosts/extern/boot/default.nix
vendored
|
@ -1,8 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.unstable.linuxPackages_latest;
|
||||
kernel.sysctl."vm.max_map_count" = 2147483642;
|
||||
blacklistedKernelModules = [ "pcspkr" ];
|
||||
};
|
||||
|
||||
# Kernel that won't explode the MacBook Air
|
||||
specialisation.nouveau.configuration.config = {
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_5_10;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@ in {
|
|||
boot = {
|
||||
# Must be Zen for IOMMU isolation
|
||||
kernelPackages = pkgs.unstable.linuxPackages_zen;
|
||||
kernel.sysctl."vm.max_map_count" = 2147483642;
|
||||
kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
|
||||
blacklistedKernelModules = [ "pcspkr" ];
|
||||
|
||||
|
@ -42,6 +41,6 @@ in {
|
|||
specialisation.nouveau.configuration.config = {
|
||||
system.video.nvidia.enable = lib.mkForce false;
|
||||
system.video.nouveau.enable = lib.mkForce true;
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkForce "0";
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkForce "";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,4 +5,9 @@
|
|||
./services
|
||||
./systemd
|
||||
];
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"vm.max_map_count" = 2147483642;
|
||||
"kernel.sysrq" = 1;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./displaymanager
|
||||
./earlyoom
|
||||
./gnome-keyring
|
||||
./gvfs
|
||||
./keyd
|
||||
|
|
4
modules/system/services/general/earlyoom/default.nix
Normal file
4
modules/system/services/general/earlyoom/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.earlyoom.enable = true;
|
||||
}
|
Loading…
Reference in a new issue