zaphyra's git: nixfiles

zaphyra's nixfiles

commit 3cba35c349f06ca557c394862dd94a66d7a2b351
parent 55e6161928f83e2a45ad4ab25865db612ed70ab9
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 29 Jun 2025 19:45:43 +0200

config/home/zaphyra/programs: add `networkManagerDmenu`
1 file changed, 41 insertions(+), 0 deletions(-)
A
config/home/zaphyra/programs/networkManagerDmenu.nix
|
41
+++++++++++++++++++++++++++++++++++++++++
diff --git a/config/home/zaphyra/programs/networkManagerDmenu.nix b/config/home/zaphyra/programs/networkManagerDmenu.nix
@@ -0,0 +1,41 @@
+{ pkgs, lib, ... }:
+
+{
+
+  home = {
+    packages = [ pkgs.networkmanager_dmenu ];
+    file.".config/networkmanager-dmenu/config.ini".text = lib.generators.toINI { } {
+      dmenu = {
+        dmenu_command = "${lib.getExe pkgs.fuzzel} --anchor=top-right --x-margin=10 --y-margin=10";
+        active_chars = "==";
+        highlight = true;
+        highlight_bold = true;
+        compact = false;
+        pinentry = null;
+        wifi_icons = "󰤯󰤟󰤢󰤥󰤨";
+        format = "{name:<{max_len_name}s}  {sec:<{max_len_sec}s} {icon:>4}";
+        list_saved = false;
+        prompt = "Networks";
+      };
+
+      dmenu_passphrase = {
+        obscure = false;
+        obscure_color = "#222222";
+      };
+
+      pinentry = {
+        description = "Get network password";
+        prompt = "Password:";
+      };
+
+      editor = {
+        terminal = lib.getExe pkgs.ghostty;
+        gui_if_available = true;
+        gui = "${pkgs.networkmanagerapplet}/bin/nm-connection-editor";
+      };
+
+      nmdm.rescan_delay = 5;
+    };
+  };
+
+}