From 8c5b984620ded523c051c18f781b9ef6f3647150 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Fri, 9 Jun 2023 12:38:26 +0200 Subject: [PATCH] tune config --- mio/hardware-configuration.nix | 11 +++-------- 1 file 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..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; }