mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
13 lines
432 B
Nix
13 lines
432 B
Nix
{config, pkgs, ... }: {
|
|
system.activationScripts.applications.text = pkgs.lib.mkForce (
|
|
''
|
|
echo "setting up ~/Applications..." >&2
|
|
rm -rf ~/Applications/Nix\ Apps
|
|
mkdir -p ~/Applications/Nix\ Apps
|
|
for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
|
|
src="$(/usr/bin/stat -f%Y "$app")"
|
|
cp -r "$src" ~/Applications/Nix\ Apps
|
|
done
|
|
''
|
|
);
|
|
}
|