about summary refs log tree commit diff
path: root/nixosConfigurations/melian
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/melian
parent2022-11-20 (diff)
2022-12-17
Diffstat (limited to '')
-rw-r--r--nixosConfigurations/melian/default.nix (renamed from configurations/melian/default.nix)46
1 files changed, 10 insertions, 36 deletions
diff --git a/configurations/melian/default.nix b/nixosConfigurations/melian/default.nix
index f296546..3ba854c 100644
--- a/configurations/melian/default.nix
+++ b/nixosConfigurations/melian/default.nix
@@ -15,25 +15,6 @@ with lib; {
     throttled.enable = true;
   };
 
-  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;
-    };
-  };
-
   hardware.trackpoint = {
     enable = true;
     speed = 500;
@@ -80,13 +61,15 @@ with lib; {
   };
 
   boot = {
-    # Speeding up Wi-Fi a bit.
-    extraModprobeConfig = ''
-      options iwlwifi 11n_disable=1
-    '';
-
     initrd = {
-      availableKernelModules = ["ahci" "nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci"];
+      availableKernelModules = [
+        "ahci"
+        "nvme"
+        "sd_mod"
+        "usb_storage"
+        "usbhid"
+        "xhci_pci"
+      ];
 
       luks.devices."root" = {
         device = "/dev/disk/by-uuid/c1b46f24-eec0-47d2-a142-75ddfd7bb218";
@@ -94,15 +77,6 @@ with lib; {
         bypassWorkqueues = true;
       };
     };
-
-    loader = {
-      efi.canTouchEfiVariables = true;
-
-      systemd-boot = {
-        enable = true;
-        configurationLimit = 10;
-      };
-    };
   };
 
   fileSystems = {
@@ -118,8 +92,8 @@ with lib; {
     };
   };
 
-  # NOTE This will make hibernation extremely hard if on an encrypted partition.
-  # This also could not work on ZFS or Btrfs.
+  # NOTE This makes hibernation pretty much impossible because the partition is
+  # encrypted.
   swapDevices = [
     {
       device = "/swapfile";

Consider giving Nix/NixOS a try! <3