mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Move rofi configuration into it's own module
This commit is contained in:
parent
2ea784c007
commit
1657e70197
4 changed files with 18 additions and 4 deletions
|
|
@ -8,5 +8,6 @@
|
|||
./git.nix
|
||||
./neovim.nix
|
||||
./kitty.nix
|
||||
./rofi
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,10 +29,7 @@
|
|||
pkgs.brightnessctl
|
||||
];
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = ./files/rofi-theme.rasi;
|
||||
};
|
||||
myConfig.rofi.enable = true;
|
||||
|
||||
services.picom = {
|
||||
enable = true;
|
||||
|
|
|
|||
16
modules/home/rofi/default.nix
Normal file
16
modules/home/rofi/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue