about summary refs log tree commit diff stats
path: root/modules/by-name/me/mergiraf/module.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/me/mergiraf/module.nix (renamed from modules/home.legacy/conf/rofi/default.nix)26
1 files changed, 18 insertions, 8 deletions
diff --git a/modules/home.legacy/conf/rofi/default.nix b/modules/by-name/me/mergiraf/module.nix
index 3de22ea0..474a0ae3 100644
--- a/modules/home.legacy/conf/rofi/default.nix
+++ b/modules/by-name/me/mergiraf/module.nix
@@ -7,13 +7,23 @@
 #
 # You should have received a copy of the License along with this program.
 # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-{pkgs, ...}: {
-  programs.rofi = {
-    enable = true;
-    package = pkgs.rofi-wayland;
-    terminal = "${pkgs.alacritty}/bin/alacritty";
-    # show-icons = true;
-    # location = "center";
-    theme = ./nord-twoLines.rasi;
+{
+  config,
+  lib,
+  libraries,
+  ...
+}: let
+  cfg = config.soispha.programs.mergiraf;
+in {
+  options.soispha.programs.mergiraf = {
+    enable = libraries.base.options.mkEnable "mergiraf";
+  };
+
+  config = lib.mkIf cfg.enable {
+    home-manager.users.soispha = {
+      programs.mergiraf = {
+        enable = true;
+      };
+    };
   };
 }