1
1
Fork 0
nixos/options/custom/programs/networkmanager-dmenu.nix

27 lines
798 B
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib; let
menu = config.home-manager.users.${config.custom.username}.home.file.".local/bin/menu".source;
cfg = config.custom.programs.networkmanager-dmenu;
in {
options.custom.programs.networkmanager-dmenu.enable = mkOption {default = false;};
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
# https://github.com/firecat53/networkmanager-dmenu
# https://github.com/firecat53/networkmanager-dmenu/blob/main/config.ini.example
#!! Option not available, files written directly
xdg.configFile."networkmanager-dmenu/config.ini".text = ''
[dmenu]
compact = true
dmenu_command = ${menu} input
active_chars =
wifi_icons = 󰤯󰤟󰤢󰤥󰤨
format = {icon} {name}
'';
};
}