1

Add rofi module

This commit is contained in:
2023-05-25 00:00:47 +02:00
parent 4f19f00716
commit 6779888b15
5 changed files with 44 additions and 16 deletions

View File

@ -168,6 +168,10 @@ rec {
# preview = true;
# };
rofi = {
enable = true;
};
vscode.enable = true;
waybar = {

View File

@ -24,6 +24,7 @@
./nextcloud
./nnn
./ranger
./rofi
./vscode
./waybar
];

View File

@ -177,21 +177,5 @@ in {
enable = true;
};
};
programs = {
rofi = {
enable = true;
package = pkgs.rofi-wayland;
plugins = [
pkgs.keepmenu # TODO: Rofi KeepassXC frontend
];
# NOTE: Don't use this, use the configfile for hot-reload
# terminal = "${pkgs.kitty}/bin/kitty";
# font = "JetBrains Mono 14";
# theme =
# extraConfig = '''';
};
};
};
}

View File

@ -0,0 +1,30 @@
{
config,
nixosConfig,
lib,
mylib,
pkgs,
...
}:
with lib;
with mylib.modules; let
cfg = config.modules.rofi;
in {
options.modules.rofi = import ./options.nix {inherit lib mylib;};
config = mkIf cfg.enable {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
plugins = [
pkgs.keepmenu # TODO: Rofi KeepassXC frontend
];
# NOTE: Don't use this, use the configfile for hot-reload
# terminal = "${pkgs.kitty}/bin/kitty";
# font = "JetBrains Mono 14";
# theme =
# extraConfig = '''';
};
};
}

View File

@ -0,0 +1,9 @@
{
lib,
mylib,
...
}:
with lib;
with mylib.modules; {
enable = mkEnableOpt "Rofi";
}