Added additional rofi configuration and plugins

This commit is contained in:
James Patrick 2022-07-16 18:50:04 -04:00
parent a0b892daea
commit fadb070332
2 changed files with 27 additions and 1 deletions

View File

@ -1 +1,3 @@
{ config, pkgs, ... }: { imports = [ ./i3.nix ./picom.nix ./polybar.nix ]; }
{ config, pkgs, ... }: {
imports = [ ./i3.nix ./picom.nix ./polybar.nix ./rofi.nix ];
}

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let
cfg = config.this.application.i3.rofi;
i3 = config.this.application.i3;
in with lib; {
options = {
this.application.i3.rofi.enable = mkOption {
default = i3.enable;
type = with types; bool;
};
};
config = mkIf cfg.enable {
home-manager.users.james = {
home.packages = with pkgs; [ rofi-systemd rofi-power-menu ];
programs.rofi = {
enable = true;
package =
pkgs.rofi.override { plugins = with pkgs; [ rofi-emoji rofi-calc ]; };
};
};
};
}