nixos/modules/home/zsh/completion.nix

19 lines
248 B
Nix

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