diff --git a/modules/home/rofi.nix b/modules/home/rofi.nix index 0aea889..0100ac3 100644 --- a/modules/home/rofi.nix +++ b/modules/home/rofi.nix @@ -421,18 +421,23 @@ in # networkmanager_dmenu drives rofi (not bare dmenu) and uses rofi's # active/urgent row styling for the connected/available networks, so it # inherits the generated theme like every other menu module. Editing a - # connection drops to nmtui in the configured terminal. - xdg.configFile."networkmanager-dmenu/config.ini".text = '' - [dmenu] - dmenu_command = rofi - rofi_highlight = True - compact = False - wifi_chars = ▂▄▆█ + # connection drops to nmtui in the configured terminal. force: the tool + # writes a default config on first run, so an unmanaged file may already + # sit at this path — we fully own it, so overwrite rather than abort. + xdg.configFile."networkmanager-dmenu/config.ini" = { + force = true; + text = '' + [dmenu] + dmenu_command = rofi + rofi_highlight = True + compact = False + wifi_chars = ▂▄▆█ - [editor] - terminal = ${cfg.terminal} - gui_if_available = False - ''; + [editor] + terminal = ${cfg.terminal} + gui_if_available = False + ''; + }; programs.rofi = { enable = true;