From 1657e70197099684798b17bac8706b049a2db445 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Mon, 25 Mar 2024 17:54:16 +0100 Subject: [PATCH] Move rofi configuration into it's own module --- modules/home/default.nix | 1 + modules/home/qtile/default.nix | 5 +---- modules/home/rofi/default.nix | 16 ++++++++++++++++ .../home/{qtile/files => rofi}/rofi-theme.rasi | 0 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 modules/home/rofi/default.nix rename modules/home/{qtile/files => rofi}/rofi-theme.rasi (100%) diff --git a/modules/home/default.nix b/modules/home/default.nix index 699be90..59a497e 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -8,5 +8,6 @@ ./git.nix ./neovim.nix ./kitty.nix + ./rofi ]; } diff --git a/modules/home/qtile/default.nix b/modules/home/qtile/default.nix index 32e038d..94cb318 100644 --- a/modules/home/qtile/default.nix +++ b/modules/home/qtile/default.nix @@ -29,10 +29,7 @@ pkgs.brightnessctl ]; - programs.rofi = { - enable = true; - theme = ./files/rofi-theme.rasi; - }; + myConfig.rofi.enable = true; services.picom = { enable = true; diff --git a/modules/home/rofi/default.nix b/modules/home/rofi/default.nix new file mode 100644 index 0000000..e5c9ca2 --- /dev/null +++ b/modules/home/rofi/default.nix @@ -0,0 +1,16 @@ +{ + config, + pkgs, + lib, + ... +}: { + options.myConfig.rofi.enable = lib.mkEnableOption ""; + + config = lib.mkIf config.myConfig.rofi.enable { + programs.rofi = { + enable = true; + package = pkgs.rofi-wayland; + theme = ./rofi-theme.rasi; + }; + }; +} diff --git a/modules/home/qtile/files/rofi-theme.rasi b/modules/home/rofi/rofi-theme.rasi similarity index 100% rename from modules/home/qtile/files/rofi-theme.rasi rename to modules/home/rofi/rofi-theme.rasi