diff --git a/hardware-configuration/X2100-Laptop.nix b/hardware-configuration/X2100-Laptop.nix index d0b52ad..be19894 100755 --- a/hardware-configuration/X2100-Laptop.nix +++ b/hardware-configuration/X2100-Laptop.nix @@ -7,24 +7,25 @@ imports = [ "${inputs.nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = + [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/nvme0n1p2"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/e50bd1d6-3613-465e-895a-9dde6ffaad46"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/nvme0n1p1"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/621A-6414"; + fsType = "vfat"; + }; swapDevices = [ ]; - console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; + hardware.video.hidpi.enable = lib.mkDefault true; nix.maxJobs = lib.mkDefault 8; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; diff --git a/modules/hardware.nix b/modules/hardware.nix index 671e25b..67c74f9 100644 --- a/modules/hardware.nix +++ b/modules/hardware.nix @@ -107,7 +107,11 @@ with deviceSpecific; { }); kernelPackages = pkgs.linuxPackages_latest; consoleLogLevel = 3; - extraModprobeConfig = "options ec_sys write_support=1"; + extraModprobeConfig = '' + options ec_sys write_support=1 + '' + lib.optionalString (device == "X2100-Laptop") '' + options iwlwifi bt_coex_active=0 + ''; kernel.sysctl."vm.swappiness" = 0; kernel.sysctl."kernel/sysrq" = 1; kernelParams = [