Enable hardened kernel and auto optimize

This commit is contained in:
Cyryl Płotnicki 2019-07-08 22:45:33 +01:00
parent 5cbc4a6117
commit 1f0e5cd347
3 changed files with 31 additions and 27 deletions

View file

@ -4,7 +4,6 @@
networking.hostName = "foureighty";
boot = {
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
initrd.kernelModules = [ "i915" ];
initrd.availableKernelModules = [

View file

@ -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";
}

View file

@ -5,7 +5,6 @@
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau