nixos/modules/home/zsh/p10k.nix

19 lines
243 B
Nix

{
config,
lib,
osConfig,
pkgs,
...
}:
with lib;
let
cfg = osConfig.modules.zsh;
xdgCfg = config.xdg;
in
{
config = mkIf cfg.enable {
home.file."${xdgCfg.configHome}/zsh/p10k.zsh" = {
source = ./p10k.zsh;
};
};
}