{ config, lib, pkgs, ... }: { xdg.configFile."networkmanager-dmenu/config.ini".text = '' [dmenu] dmenu_command = /run/current-system/sw/bin/rofi [editor] terminal = xst gui_if_available = false ''; nixpkgs.overlays = [ (self: super: { rofi= super.rofi.overrideAttrs (oldAttrs: rec { postInstall = '' ln $out/bin/rofi $out/bin/dmenu ''; }); }) ]; programs.rofi = { enable = true; theme = "Arc"; extraConfig = '' rofi.matching: glob rofi.separator-style: none rofi.line-padding: 2 rofi.display-run: cmd rofi.display-drun: run rofi.display-window: win ''; }; }