Added: Git clone of repo in to home folder
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
{ primaryUser, inputs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
primaryUser,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./packages.nix
|
./packages.nix
|
||||||
@@ -17,5 +23,19 @@
|
|||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
GROQ_API_KEY = "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";
|
GROQ_API_KEY = "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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
activation = {
|
||||||
|
cloneCyperServersRepo = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
REPO_URL="https://git.cyperpunk.de/DerGrumpf/cyper-servers.git"
|
||||||
|
TARGET_DIR="$HOME/cyper-servers"
|
||||||
|
|
||||||
|
if [ ! -d "$TARGET_DIR" ]; then
|
||||||
|
echo "Cloning cyper-servers repository..."
|
||||||
|
${pkgs.git}/bin/git clone "$REPO_URL" "$TARGET_DIR"
|
||||||
|
else
|
||||||
|
echo "cyper-servers already exists, skipping clone."
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user