aboutsummaryrefslogtreecommitdiff
path: root/nixos/laptop/hardware-configuration.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2024-06-27 17:56:45 +0300
committerspl3g <spleefer6@yandex.ru>2025-05-01 14:58:56 +0300
commit566cbb1b88625bdd1a0896d91ed26eb39d0cc6a4 (patch)
tree8abc5d3470a9507e0de95e3db7e5cba5c38969e1 /nixos/laptop/hardware-configuration.nix
parenta1ae7425b39ccab135360155545258c5a3ccb295 (diff)
add nixos hardware
Diffstat (limited to 'nixos/laptop/hardware-configuration.nix')
-rw-r--r--nixos/laptop/hardware-configuration.nix17
1 files changed, 5 insertions, 12 deletions
diff --git a/nixos/laptop/hardware-configuration.nix b/nixos/laptop/hardware-configuration.nix
index 8dc4a78..7348124 100644
--- a/nixos/laptop/hardware-configuration.nix
+++ b/nixos/laptop/hardware-configuration.nix
@@ -10,7 +10,7 @@
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-amd" "amdgpu" "hid_nintendo" ];
+ boot.kernelModules = [ "kvm-amd" "hid_nintendo" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
@@ -38,18 +38,11 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
- hardware.opengl = {
+ hardware.amdgpu.amdvlk = {
enable = true;
- driSupport = true;
- driSupport32Bit = true;
- extraPackages = with pkgs; [
- amdvlk
- rocmPackages.clr.icd
- ];
+ support32Bit.enable = true;
};
- hardware.bluetooth = {
- enable = true;
- powerOnBoot = true;
- };
+ services.xserver.videoDrivers = [ "amdgpu" ];
+ hardware.bluetooth.enable = true;
}