From 508aee982ae2fda532742dffdc781f78351e115f Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 17 Aug 2022 17:48:15 +0300 Subject: 2022-08-17 --- configurations/melian/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'configurations') diff --git a/configurations/melian/default.nix b/configurations/melian/default.nix index cde109d..6703d0f 100644 --- a/configurations/melian/default.nix +++ b/configurations/melian/default.nix @@ -169,7 +169,8 @@ with lib; { }; }; - # Hibernation is not enabled because I don't use it. + # NOTE This will make hibernation extremely hard if on an encrypted partition. + # This also could not work on ZFS or Btrfs. swapDevices = [ { device = "/swapfile"; @@ -180,12 +181,7 @@ with lib; { boot = { kernelPackages = mkForce pkgs.linuxPackages_xanmod_latest; - # https://www.phoronix.com/scan.php?page=article&item=spectre-meltdown-2&num=11 - kernelParams = ["mitigations=off"]; - - # Just to make Lutris/Wine logs happy. - kernel.sysctl."dev.i915.perf_stream_paranoid" = 0; - + # Speeding Wi-Fi a bit. extraModprobeConfig = '' options iwlwifi 11n_disable=1 ''; @@ -245,7 +241,7 @@ with lib; { services = { tlp = { - enable = false; + enable = false; # TODO Test this again. settings = { START_CHARGE_THRESH_BAT0 = 75; STOP_CHARGE_THRESH_BAT0 = 80; @@ -284,5 +280,6 @@ with lib; { xserver.videoDrivers = ["intel" "modesetting"]; }; + # TODO This should be applied globally to all machines. system.stateVersion = "22.05"; } -- cgit v1.2.3