Clean up & revise hardware-configuration comments

This commit is contained in:
Henrik Lissner 2021-02-21 10:30:01 -05:00
parent a0b65fdb9a
commit b8e4813f09
2 changed files with 8 additions and 11 deletions

View file

@ -10,9 +10,8 @@
kernelModules = [ "kvm-amd" ];
kernelParams = [
# HACK Disables fixes for spectre, meltdown, L1TF and a number of CPU
# vulnerabilities. This is not a good idea for mission critical or
# server/headless builds, but on my lonely home system I prioritize
# raw performance over security. The gains are minor.
# vulnerabilities. Don't copy this blindly! And especially not for
# mission critical or server/headless builds exposed to the world.
"mitigations=off"
];
};

View file

@ -1,6 +1,3 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, inputs, modulesPath, ... }:
{
@ -14,11 +11,12 @@
initrd.kernelModules = [ "dm-snapshot" ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
# HACK Disables fixes for spectre, meltdown, L1TF and a number of CPU
# vulnerabilities. This is not a good idea for mission critical or
# server/headless builds, but Kuro isn't either. I'll prioritize raw
# performance over security here, though the gains are minor.
kernelParams = [ "mitigations=off" ];
kernelParams = [
# HACK Disables fixes for spectre, meltdown, L1TF and a number of CPU
# vulnerabilities. Don't copy this blindly! And especially not for
# mission critical or server/headless builds exposed to the world.
"mitigations=off"
];
};
# Modules