nix-config/modules/rofi/default.nix
2023-01-25 20:15:06 -08:00

18 lines
400 B
Nix

{ pkgs, ... }:
let
_theme = import ../theme;
theme = _theme.theme; # Theme name
in {
home.packages = with pkgs; [
(pkgs.callPackage ./power.nix { })
wmctrl # TODO: add as dependency of rofi-power
];
programs.rofi = {
enable = true;
inherit theme;
};
home.file.".config/rofi/${theme}.rasi".source = pkgs.substituteAll ({
src = ./theme.rasi;
} // _theme.colors);
}