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:
parent
3b69bf3cc2
commit
9c76fbf20f
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue