1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Disable taking control of ~/Applications folder

Programs like Steam add applications to ~/Applications and such.

This commit disables linking ~/Applications to nix-darwin Applications
in the /nix/store and makes nix-darwin use a subfolder within
~/Applications.
This commit is contained in:
Nicolas Berbiche 2020-09-05 18:12:07 -04:00 committed by toonn
parent 3b69bf3cc2
commit 9c76fbf20f
No known key found for this signature in database
GPG key ID: 44FF902A66DF4576

View file

@ -24,12 +24,12 @@ in
# Set up applications.
echo "setting up ~/Applications..." >&2
if [ ! -e ~/Applications -o -L ~/Applications ]; then
ln -sfn ${cfg.build.applications}/Applications ~/Applications
elif [ ! -e ~/Applications/Nix\ Apps -o -L ~/Applications/Nix\ Apps ]; then
mkdir -p ~/Applications
if [ ! -e ~/Applications/Nix\ Apps -o -L ~/Applications/Nix\ Apps ]; then
ln -sfn ${cfg.build.applications}/Applications ~/Applications/Nix\ Apps
else
echo "warning: ~/Applications and ~/Applications/Nix Apps are directories, skipping App linking..." >&2
echo "warning: ~/Applications/Nix Apps is not owned by nix-darwin, skipping App linking..." >&2
fi
'';