about summary refs log tree commit diff
path: root/configurations
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-08-17 17:48:15 +0300
committerAzat Bahawi <azat@bahawi.net>2022-08-17 17:48:15 +0300
commit508aee982ae2fda532742dffdc781f78351e115f (patch)
tree22915df34232a7348904b7813660392ed4318fcb /configurations
parent2022-08-16 (diff)
2022-08-17
Diffstat (limited to 'configurations')
-rw-r--r--configurations/melian/default.nix13
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";
 }

Consider giving Nix/NixOS a try! <3