aboutsummaryrefslogtreecommitdiff
path: root/nixos/laptop/hardware-configuration.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-10-27 23:45:05 +0300
committerspl3g <spleefer6@yandex.ru>2025-10-27 23:50:34 +0300
commit45da62a634546a7359b9654a1e01be3bd067189a (patch)
tree30a8a5fa9ebae46dda2ccf0f03df8975bc45ca52 /nixos/laptop/hardware-configuration.nix
parent3ac3426144afa5eff1bb2551e27026c1cd0f2ca4 (diff)
chore: formatting
Diffstat (limited to 'nixos/laptop/hardware-configuration.nix')
-rw-r--r--nixos/laptop/hardware-configuration.nix32
1 files changed, 16 insertions, 16 deletions
diff --git a/nixos/laptop/hardware-configuration.nix b/nixos/laptop/hardware-configuration.nix
index f8d847d..e63527d 100644
--- a/nixos/laptop/hardware-configuration.nix
+++ b/nixos/laptop/hardware-configuration.nix
@@ -1,18 +1,23 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
-{ config, lib, pkgs, modulesPath, ... }:
-
{
- imports =
- [ (modulesPath + "/installer/scan/not-detected.nix")
- ];
+ config,
+ lib,
+ pkgs,
+ modulesPath,
+ ...
+}: {
+ imports = [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
- boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci" ];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-amd" ];
- boot.kernelParams = [ "amdgpu.sg_display=0" ];
- boot.extraModulePackages = [ ];
+ boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci"];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = ["kvm-amd"];
+ # boot.kernelParams = ["amdgpu.sg_display=0" "amdgpu.dcdebugmask=0x10"];
+ boot.kernelParams = [];
+ boot.extraModulePackages = [];
# 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
@@ -25,16 +30,11 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
- # hardware.amdgpu.amdvlk = {
- # enable = true;
- # support32Bit.enable = true;
- # };
-
hardware.graphics = {
enable = true;
enable32Bit = true;
};
+ hardware.amdgpu.initrd.enable = true;
- services.xserver.videoDrivers = [ "modesetting" ];
hardware.bluetooth.enable = true;
}