rose-pine-nix/modules/home-manager/zellij.nix

26 lines
527 B
Nix
Raw Permalink Normal View History

{
2024-10-20 15:26:56 -07:00
config,
lib,
...
}:
let
2024-10-20 15:26:56 -07:00
inherit (config.rose-pine) sources;
cfg = config.programs.zellij.rose-pine;
enable = cfg.enable && config.programs.zellij.enable;
themeName = lib.rp.getKebabTheme cfg.flavor;
2024-10-20 15:26:56 -07:00
theme = sources.zellij + "/dist/${themeName}.kdl";
in
{
options.programs.zellij.rose-pine = lib.rp.mkRosePineOpt { name = "zellij"; };
config = lib.mkIf enable {
2024-10-20 15:26:56 -07:00
xdg.configFile."zellij/themes/${themeName}.kdl".source = theme;
2024-05-21 14:53:46 -07:00
programs.zellij.settings = {
theme = themeName;
};
};
}