nvim: clone the repository in the service script

This commit is contained in:
Tigor Hutasuhut 2024-06-17 16:34:36 +07:00
parent 058a15cb24
commit 0361e056f5

View file

@ -29,12 +29,13 @@ in
exit 0;
fi
mkdir -p ${nvimCloneDir}
until ${ping} -c 1 ${host}; do
${sleep} 1;
done
mkdir -p ${nvimCloneDir}
${git} clone ${repository} ${nvimCloneDir}
'';
path = "${script}/bin/clone-nvim.sh";
@ -51,7 +52,7 @@ in
};
xdg.configFile.nvim = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nvim";
source = config.lib.file.mkOutOfStoreSymlink nvimCloneDir;
recursive = true;
};