about summary refs log tree commit diff
path: root/nixosConfigurations/eonwe
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-12-17 16:39:09 +0300
committerAzat Bahawi <azat@bahawi.net>2022-12-17 16:39:09 +0300
commit8f137c28230623259a964484adcf31fe00756594 (patch)
tree82bce6a13fda125087cf6d9dc80aa91d9230d6c4 /nixosConfigurations/eonwe
parent2022-11-20 (diff)
2022-12-17
Diffstat (limited to '')
-rw-r--r--nixosConfigurations/eonwe/default.nix (renamed from configurations/eonwe/default.nix)54
1 files changed, 21 insertions, 33 deletions
diff --git a/configurations/eonwe/default.nix b/nixosConfigurations/eonwe/default.nix
index c9af8e5..a867837 100644
--- a/configurations/eonwe/default.nix
+++ b/nixosConfigurations/eonwe/default.nix
@@ -2,6 +2,7 @@
   config,
   lib,
   pkgs,
+  this,
   ...
 }:
 with lib; {
@@ -18,6 +19,7 @@ with lib; {
     };
     android.enable = true;
     bluetooth.enable = true;
+    discord.enable = true;
     libvirtd.enable = true;
     qutebrowser.enable = true;
   };
@@ -27,41 +29,28 @@ with lib; {
 
     mpv.config = {
       hwdec = "vdpau";
-      vo = "vdpau";
+      vo = "gpu";
       profile = "gpu-hq";
     };
   };
 
-  networking = {
-    interfaces = {
-      eth0.useDHCP = true;
-      wlan0.useDHCP = true;
-    };
-
-    networkmanager = {
-      enable = true;
-      wifi.backend = "iwd";
-    };
-
-    wireless = {
-      enable = false;
-      iwd.enable = true;
-      userControlled.enable = true;
-      allowAuxiliaryImperativeNetworks = true;
-    };
-  };
-
   boot = {
-    initrd.availableKernelModules = ["ahci" "nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci"];
-
-    loader = {
-      efi.canTouchEfiVariables = true;
+    # Silence benign MCE errors:
+    # ```
+    # mce: [Hardware Error]: CPU 1: Machine Check: 0 Bank 29: ffffffffffffffff
+    # mce: [Hardware Error]: TSC 0 MISC ff1fffffffffffff SYND ffffffffffffffff IPID ffffffffffffffff
+    # mce: [Hardware Error]: PROCESSOR 2:a60f12 TIME 1669988017 SOCKET 0 APIC 2 microcode a601201
+    # ```
+    kernelParams = ["mce=nobootlog"];
 
-      systemd-boot = {
-        enable = true;
-        configurationLimit = 10;
-      };
-    };
+    initrd.availableKernelModules = [
+      "ahci"
+      "nvme"
+      "sd_mod"
+      "usb_storage"
+      "usbhid"
+      "xhci_pci"
+    ];
   };
 
   fileSystems = {
@@ -77,8 +66,7 @@ with lib; {
     };
   };
 
-  zramSwap = {
-    enable = true;
-    memoryPercent = 25;
-  };
+  # No swap space is declared here because the system already has 128Gb of RAM.
+  # I didn't manage to even hit 100Gb mark even when running large
+  # computations/compiling something big.
 }

Consider giving Nix/NixOS a try! <3