only create symlink if not present
This commit is contained in:
parent
53fc65d4fb
commit
b3f80e0818
1 changed files with 6 additions and 2 deletions
|
|
@ -316,8 +316,12 @@ in
|
|||
home.activation.symlinks = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
PATH="${pkgs.git}/bin:${pkgs.openssh}/bin:$PATH"
|
||||
set +eu
|
||||
if [ ! -L ~/Documents ]; then
|
||||
ln -s /home/dominik/.local/share/Cryptomator/mnt/Documents ~/Documents
|
||||
fi
|
||||
if [ ! -L ~/Downloads ]; then
|
||||
ln -s /home/dominik/.local/share/Cryptomator/mnt/Downloads ~/Downloads
|
||||
fi
|
||||
set -eu
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue