better cloning
This commit is contained in:
@@ -28,10 +28,13 @@ in
|
|||||||
# appdaemon
|
# appdaemon
|
||||||
];
|
];
|
||||||
|
|
||||||
# Alternatively, use a symlink
|
system.userActivationScripts.ad-setup.text = ''
|
||||||
system.activationScripts.linkAdNix = lib.mkForce ''
|
if [ ! -d ${adTargetPath} ]; then
|
||||||
echo "Linking ad-nix repository to ${adTargetPath}"
|
${pkgs.git}/bin/git clone https://gitea.john-stream.com/john/ad-nix ${adTargetPath}
|
||||||
ln -sfn ${ad_src} ${adTargetPath}
|
chown -R appdaemon:users ${adTargetPath}
|
||||||
|
else
|
||||||
|
${pkgs.git}/bin/git -C ${adTargetPath} pull
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user