Update files
This commit is contained in:
@@ -41,6 +41,23 @@
|
||||
|
||||
echo "Dotfiles bootstrapped successfully."
|
||||
'';
|
||||
setupNotes = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [[ -v DRY_RUN ]]; then
|
||||
echo "Dry run: Would initialise Notes from labs.scarif.space"
|
||||
exit
|
||||
fi
|
||||
|
||||
NOTES_DIR="$HOME/Notes"
|
||||
|
||||
if [ ! -d "$NOTES_DIR" ]; then
|
||||
echo "No local repository so cloning from remote"
|
||||
SOURCE="https://labs.scarif.space/chris/notes.git"
|
||||
${pkgs.git}/bin/git clone -b main "$SOURCE" "$NOTES_DIR"
|
||||
echo "Notes downloaded successfully."
|
||||
else
|
||||
echo "Notes directory already exists, skipping clone"
|
||||
fi
|
||||
'';
|
||||
setupDevDirectories = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [[ -v DRY_RUN ]]; then
|
||||
echo "Dry run: Would create dev directories"
|
||||
|
||||
Reference in New Issue
Block a user