mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21: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
|
./git.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
./rofi
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,7 @@
|
||||||
pkgs.brightnessctl
|
pkgs.brightnessctl
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.rofi = {
|
myConfig.rofi.enable = true;
|
||||||
enable = true;
|
|
||||||
theme = ./files/rofi-theme.rasi;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
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