Add copyApplications
parent
7052c4d511
commit
20c07d46b0
|
@ -0,0 +1,15 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.activation = {
|
||||||
|
copyApplications = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
appsSrc="$newGenPath/home-path/Applications/"
|
||||||
|
if [ -d "$appsSrc" ]; then
|
||||||
|
baseDir="$HOME/Applications/Home Manager Apps"
|
||||||
|
rsyncArgs="--archive --checksum --chmod=-w --copy-unsafe-links --delete"
|
||||||
|
$DRY_RUN_CMD mkdir -p "$baseDir"
|
||||||
|
$DRY_RUN_CMD ${pkgs.rsync}/bin/rsync ''${VERBOSE_ARG:+-v} $rsyncArgs "$appsSrc" "$baseDir"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue