mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -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
|
|
''
|
|
);
|
|
}
|