diff options
author | Azat Bahawi <azat@bahawi.net> | 2022-08-17 17:48:15 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2022-08-17 17:48:15 +0300 |
commit | 508aee982ae2fda532742dffdc781f78351e115f (patch) | |
tree | 22915df34232a7348904b7813660392ed4318fcb /configurations | |
parent | 2022-08-16 (diff) |
2022-08-17
Diffstat (limited to 'configurations')
-rw-r--r-- | configurations/melian/default.nix | 13 |
1 files changed, 5 insertions, 8 deletions
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"; } |