Add rofi module
This commit is contained in:
@ -168,6 +168,10 @@ rec {
|
||||
# preview = true;
|
||||
# };
|
||||
|
||||
rofi = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
vscode.enable = true;
|
||||
|
||||
waybar = {
|
||||
|
@ -24,6 +24,7 @@
|
||||
./nextcloud
|
||||
./nnn
|
||||
./ranger
|
||||
./rofi
|
||||
./vscode
|
||||
./waybar
|
||||
];
|
||||
|
@ -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 = '''';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
30
home/modules/rofi/default.nix
Normal file
30
home/modules/rofi/default.nix
Normal 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 = '''';
|
||||
};
|
||||
};
|
||||
}
|
9
home/modules/rofi/options.nix
Normal file
9
home/modules/rofi/options.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules; {
|
||||
enable = mkEnableOpt "Rofi";
|
||||
}
|
Reference in New Issue
Block a user