Move rofi configuration into it's own module

This commit is contained in:
SebastianStork 2024-03-25 17:54:16 +01:00
parent 2ea784c007
commit 1657e70197
4 changed files with 18 additions and 4 deletions

View file

@ -8,5 +8,6 @@
./git.nix
./neovim.nix
./kitty.nix
./rofi
];
}

View file

@ -29,10 +29,7 @@
pkgs.brightnessctl
];
programs.rofi = {
enable = true;
theme = ./files/rofi-theme.rasi;
};
myConfig.rofi.enable = true;
services.picom = {
enable = true;

View file

@ -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;
};
};
}