all repos — nixfiles @ 54f7e1a124cf07f0e69a5bb230a105a063146d2d

System and user configuration, managed by nix and home-manager

Inline rofi configuration
Alan Pearce alan@alanpearce.eu
Fri, 04 Oct 2019 22:15:06 +0200
commit

54f7e1a124cf07f0e69a5bb230a105a063146d2d

parent

59caf53ead1ae63e914f3c783477f5c8cac2b847

3 files changed, 20 insertions(+), 17 deletions(-)

jump to
M user/modules/rofi.nixuser/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
+    '';
   };
 }
D user/rofi/.config/networkmanager-dmenu/config.ini
@@ -1,6 +0,0 @@-[dmenu]
-dmenu_command = /run/current-system/sw/bin/rofi
-
-[editor]
-terminal = xst
-gui_if_available = false
D user/rofi/.config/rofi/config
@@ -1,8 +0,0 @@-rofi.matching:            glob
-rofi.separator-style:     none
-
-rofi.line-padding:        2
-
-rofi.display-run:         cmd
-rofi.display-drun:        run
-rofi.display-window:      win