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";
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
||||
initrd.kernelModules = [ "i915" ];
|
||||
initrd.availableKernelModules = [
|
||||
|
|
|
@ -105,7 +105,13 @@ in
|
|||
hardware.sane.enable = true;
|
||||
powerManagement.cpuFreqGovernor = (lib.mkForce null);
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
|
||||
|
||||
nix.gc.automatic = true;
|
||||
nix.autoOptimiseStore = true;
|
||||
nix.optimise.automatic = true;
|
||||
nix.daemonIONiceLevel = 7;
|
||||
nix.daemonNiceLevel = 19;
|
||||
system.autoUpgrade.enable = true;
|
||||
system.stateVersion = "19.03";
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
|
|
Loading…
Reference in a new issue