Fix hooks
This commit is contained in:
@@ -73,5 +73,21 @@
|
|||||||
cp "${../initial-configs/Enpass.conf}" "$DEST_FILE"
|
cp "${../initial-configs/Enpass.conf}" "$DEST_FILE"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
setupDefaultWallpaper = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
|
if [[ -v DRY_RUN ]]; then
|
||||||
|
echo "Dry run: Would copy wallpaper and initialise colour scheme if not set"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
WALLPAPER_FILE="$HOME/.config/station/current/background"
|
||||||
|
|
||||||
|
if [ ! -f "$WALLPAPER_FILE" ]; then
|
||||||
|
mkdir -p "$(dirname "$WALLPAPER_FILE")"
|
||||||
|
ln -nsf ${../default_wallpaper.png} "$WALLPAPER_FILE"
|
||||||
|
fi
|
||||||
|
if [ ! -f "$HOME/.config/wal/colors" ]; then
|
||||||
|
${pkgs.pywal16}/bin/wal -i "$WALLPAPER_FILE"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user