nvim: clone the repository in the service script
This commit is contained in:
parent
058a15cb24
commit
0361e056f5
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue