diff options
| author | Nicolas Berbiche <nic.berbiche@gmail.com> | 2020-09-05 18:12:07 -0400 |
|---|---|---|
| committer | toonn <toonn@toonn.io> | 2022-09-13 14:57:46 +0200 |
| commit | 9c76fbf20ff48f8d08ebe12e564c86e9ebd4a9b3 (patch) | |
| tree | b3d1499d7e9c3f71ab065ada984caf6d6537edc3 /modules/system | |
| parent | 3b69bf3cc26ae19de847bfe54d6ab22d7381a90a (diff) | |
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.
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/applications.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/applications.nix b/modules/system/applications.nix index 8183e0a..dcfd7a4 100644 --- a/modules/system/applications.nix +++ b/modules/system/applications.nix @@ -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 ''; |
