Enable hardened kernel and auto optimize
This commit is contained in:
parent
5cbc4a6117
commit
1f0e5cd347
3 changed files with 31 additions and 27 deletions
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
networking.hostName = "foureighty";
|
networking.hostName = "foureighty";
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
||||||
initrd.kernelModules = [ "i915" ];
|
initrd.kernelModules = [ "i915" ];
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
|
|
|
@ -105,7 +105,13 @@ in
|
||||||
hardware.sane.enable = true;
|
hardware.sane.enable = true;
|
||||||
powerManagement.cpuFreqGovernor = (lib.mkForce null);
|
powerManagement.cpuFreqGovernor = (lib.mkForce null);
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
|
||||||
|
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
|
nix.autoOptimiseStore = true;
|
||||||
|
nix.optimise.automatic = true;
|
||||||
|
nix.daemonIONiceLevel = 7;
|
||||||
|
nix.daemonNiceLevel = 19;
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
system.stateVersion = "19.03";
|
system.stateVersion = "19.03";
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
driSupport32Bit = true;
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vaapiIntel
|
vaapiIntel
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
|
|
Loading…
Reference in a new issue