This commit is contained in:
Barrett Ruth 2026-02-11 15:03:45 -05:00
parent 0281b21060
commit 0f2d9ac84c
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -1,7 +1,6 @@
{
lib,
config,
pkgs,
...
}:
@ -24,16 +23,7 @@ in
done
'';
home.activation.cloneNixConfig = lib.hm.dag.entryAfter [ "createDirectories" ] ''
if [ ! -d "${repoDir}" ]; then
run mkdir -p "$(dirname "${repoDir}")"
if ! run ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" 2>&1; then
echo "WARNING: could not clone nix-config (network may not be ready)"
fi
fi
'';
home.activation.linkWallpapers = lib.hm.dag.entryAfter [ "cloneNixConfig" ] ''
home.activation.linkWallpapers = lib.hm.dag.entryAfter [ "createDirectories" ] ''
src="${repoDir}/config/screen"
dest="$HOME/img/screen"
if [ -d "$src" ]; then