From 5f89becff7cf8f4fd83e069459f6b8b5d773b956 Mon Sep 17 00:00:00 2001 From: spl3g Date: Fri, 8 Mar 2024 16:26:58 +0300 Subject: thats a lot of deletions --- nixos/laptop/hardware-configuration.nix | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'nixos/laptop/hardware-configuration.nix') diff --git a/nixos/laptop/hardware-configuration.nix b/nixos/laptop/hardware-configuration.nix index e3e8a01..8dc4a78 100644 --- a/nixos/laptop/hardware-configuration.nix +++ b/nixos/laptop/hardware-configuration.nix @@ -8,23 +8,23 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ "kvm-amd" "amdgpu" "hid_nintendo" ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/b4d5e165-3c5d-494f-b6f4-dad51c470f4b"; + { device = "/dev/disk/by-uuid/f42dd8ca-f644-462f-a804-1e41d3a56d54"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/4075-1CD3"; + { device = "/dev/disk/by-uuid/76AA-EF6D"; fsType = "vfat"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/92692e2e-0394-4d43-b309-d0d650af1e21"; } + [ { device = "/dev/disk/by-uuid/f1217bb2-a665-41f1-b381-057aac378262"; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking @@ -32,21 +32,24 @@ # 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.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - - hardware.bluetooth = { - enable = true; - }; - + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.opengl = { enable = true; driSupport = true; driSupport32Bit = true; - extraPackages = with pkgs; [ intel-compute-runtime ]; + extraPackages = with pkgs; [ + amdvlk + rocmPackages.clr.icd + ]; + }; + + hardware.bluetooth = { + enable = true; + powerOnBoot = true; }; - # hardware.opentabletdriver.enable = true; } -- cgit v1.2.3