summaryrefslogtreecommitdiff
path: root/mio
diff options
context:
space:
mode:
Diffstat (limited to 'mio')
-rw-r--r--mio/hardware-configuration.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/mio/hardware-configuration.nix b/mio/hardware-configuration.nix
index 3d6dfb3..42e0866 100644
--- a/mio/hardware-configuration.nix
+++ b/mio/hardware-configuration.nix
@@ -9,7 +9,7 @@
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
- boot.initrd.kernelModules = [ ];
+ boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
@@ -24,6 +24,8 @@
};
boot.initrd.luks.devices."crypt-disk1".device = "/dev/disk/by-uuid/04638cc4-d719-4ef6-98d7-dd809032d608";
+ boot.initrd.luks.devices."crypt-disk1".allowDiscards = true;
+ boot.initrd.luks.devices."crypt-disk1".bypassWorkqueues = true;
fileSystems."/nix" =
{ device = "/dev/mapper/crypt-disk1";
@@ -57,13 +59,6 @@
swapDevices = [ ];
- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
- # (the default) this is the recommended approach. When using systemd-networkd it's
- # still possible to use this option, but it's recommended to use it in conjunction
- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
- networking.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
-
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}