Converted rofi to a home module
This commit is contained in:
parent
8b6e8fb936
commit
6cf34c66c8
4 changed files with 27 additions and 28 deletions
26
modules/home/programs/rofi/default.nix
Normal file
26
modules/home/programs/rofi/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.${namespace}.programs.rofi;
|
||||
in {
|
||||
options.${namespace}.programs.rofi = {
|
||||
enable = mkEnableOption "rofi";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
# TODO: How to ensure this font is installed?
|
||||
font = "Hack Nerd Font 10";
|
||||
theme = "gruvbox-dark-hard";
|
||||
extraConfig = {
|
||||
show-icons = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue