fix(menu): force-own networkmanager-dmenu config.ini
networkmanager_dmenu writes a default config on first run, so an unmanaged file can already sit at ~/.config/networkmanager-dmenu/ config.ini and abort `home-manager switch` with a clobber error. We fully generate this file, so set force = true to overwrite it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -421,18 +421,23 @@ in
|
|||||||
# networkmanager_dmenu drives rofi (not bare dmenu) and uses rofi's
|
# networkmanager_dmenu drives rofi (not bare dmenu) and uses rofi's
|
||||||
# active/urgent row styling for the connected/available networks, so it
|
# active/urgent row styling for the connected/available networks, so it
|
||||||
# inherits the generated theme like every other menu module. Editing a
|
# inherits the generated theme like every other menu module. Editing a
|
||||||
# connection drops to nmtui in the configured terminal.
|
# connection drops to nmtui in the configured terminal. force: the tool
|
||||||
xdg.configFile."networkmanager-dmenu/config.ini".text = ''
|
# writes a default config on first run, so an unmanaged file may already
|
||||||
[dmenu]
|
# sit at this path — we fully own it, so overwrite rather than abort.
|
||||||
dmenu_command = rofi
|
xdg.configFile."networkmanager-dmenu/config.ini" = {
|
||||||
rofi_highlight = True
|
force = true;
|
||||||
compact = False
|
text = ''
|
||||||
wifi_chars = ▂▄▆█
|
[dmenu]
|
||||||
|
dmenu_command = rofi
|
||||||
|
rofi_highlight = True
|
||||||
|
compact = False
|
||||||
|
wifi_chars = ▂▄▆█
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
terminal = ${cfg.terminal}
|
terminal = ${cfg.terminal}
|
||||||
gui_if_available = False
|
gui_if_available = False
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user