summary refs log tree commit diff stats
path: root/user/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-10-04 22:15:06 +0200
committerAlan Pearce2019-10-04 22:15:06 +0200
commit54f7e1a124cf07f0e69a5bb230a105a063146d2d (patch)
tree22e4e98b0e5ae5cad5fa390f12f7322d162ca384 /user/modules
parent59caf53ead1ae63e914f3c783477f5c8cac2b847 (diff)
downloadnixfiles-54f7e1a124cf07f0e69a5bb230a105a063146d2d.tar.lz
nixfiles-54f7e1a124cf07f0e69a5bb230a105a063146d2d.tar.zst
nixfiles-54f7e1a124cf07f0e69a5bb230a105a063146d2d.zip
Inline rofi configuration
Diffstat (limited to 'user/modules')
-rw-r--r--user/modules/rofi.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/user/modules/rofi.nix b/user/modules/rofi.nix
index 1de577b3..b34af881 100644
--- a/user/modules/rofi.nix
+++ b/user/modules/rofi.nix
@@ -1,8 +1,25 @@
 { config, pkgs, ... }:
 
 {
-  xdg.configFile.rofi = {
-    recursive = true;
-    source = ../rofi/.config/rofi;
+  xdg.configFile."networkmanager-dmenu/config.ini".text = ''
+    [dmenu]
+    dmenu_command = /run/current-system/sw/bin/rofi
+
+    [editor]
+    terminal = xst
+    gui_if_available = false
+  '';
+  programs.rofi = {
+    enable = true;
+    extraConfig = ''
+      rofi.matching:            glob
+      rofi.separator-style:     none
+
+      rofi.line-padding:        2
+
+      rofi.display-run:         cmd
+      rofi.display-drun:        run
+      rofi.display-window:      win
+    '';
   };
 }