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 = {
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 "";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,4 +5,9 @@
|
||||||
./services
|
./services
|
||||||
./systemd
|
./systemd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"vm.max_map_count" = 2147483642;
|
||||||
|
"kernel.sysrq" = 1;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./displaymanager
|
./displaymanager
|
||||||
|
./earlyoom
|
||||||
./gnome-keyring
|
./gnome-keyring
|
||||||
./gvfs
|
./gvfs
|
||||||
./keyd
|
./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