From f257c15071748ba18b5835355cff396edf6349db Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 4 Apr 2021 19:28:44 +0000 Subject: [PATCH] home: wm: add rofi --- home/wm/default.nix | 1 + home/wm/rofi.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 home/wm/rofi.nix diff --git a/home/wm/default.nix b/home/wm/default.nix index b8eec93..55669eb 100644 --- a/home/wm/default.nix +++ b/home/wm/default.nix @@ -3,6 +3,7 @@ imports = [ ./i3.nix ./i3bar.nix + ./rofi.nix ]; options.my.home.wm = with lib; { diff --git a/home/wm/rofi.nix b/home/wm/rofi.nix new file mode 100644 index 0000000..b2fb32f --- /dev/null +++ b/home/wm/rofi.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +let + isEnabled = config.my.home.wm.windowManager == "i3"; +in +{ + config = lib.mkIf isEnabled { + programs.rofi = { + enable = true; + + package = pkgs.rofi.override { + plugins = with pkgs; [ + rofi-emoji + ]; + }; + + theme = "gruvbox-dark-hard"; + }; + }; +}