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

27 lines
579 B
Nix
Raw Normal View History

{
2024-10-20 15:26:56 -07:00
config,
lib,
...
}: let
inherit (config.rose-pine) sources;
cfg = config.programs.zellij.rose-pine;
enable = cfg.enable && config.programs.zellij.enable;
themeName =
if (cfg.flavor == "main")
then "rose-pine"
else "rose-pine-${cfg.flavor}";
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;
};
};
}