From 6f72ec8f5556e5a00eaf13f84cf6541f7b2a3f20 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 6 Jul 2026 09:42:28 +0200 Subject: [PATCH] Fix nvim/wifi --- hosts/fuhen/hardware-configuration.nix | 6 ++++++ nvim/lua/settings.lua | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/fuhen/hardware-configuration.nix b/hosts/fuhen/hardware-configuration.nix index 0c44eea..6f7abcf 100644 --- a/hosts/fuhen/hardware-configuration.nix +++ b/hosts/fuhen/hardware-configuration.nix @@ -22,6 +22,12 @@ ]; extraModprobeConfig = '' options snd_hda_intel power_save=1 + # AX201 firmware (NMI_INTERRUPT_UMAC_FATAL) crashes at boot under the + # 6.18.38 kernel when the PCIe link is aggressively power-managed + # (pcie_aspm.policy=powersave above). Keep the Wi-Fi radio awake so the + # firmware boots reliably; the rest of the bus still saves power. + options iwlwifi power_save=0 + options iwlmvm power_scheme=1 ''; kernel.sysctl = { "kernel.nmi_watchdog" = 0; diff --git a/nvim/lua/settings.lua b/nvim/lua/settings.lua index 43553a7..57421b5 100644 --- a/nvim/lua/settings.lua +++ b/nvim/lua/settings.lua @@ -27,7 +27,7 @@ vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.cmdheight = 0 -vim.opt.colorcolumn = { 80, 120 } +vim.opt.colorcolumn = '80,120' vim.opt.list = true vim.opt.listchars = { space = "ยท",