Fix linking to non-existent directories

This commit is contained in:
Charlotte Van Petegem 2020-09-05 12:29:21 +02:00
parent 3fc7502b31
commit 4f0ffa2146

View file

@ -1,7 +1,10 @@
{ config, lib, ... }: { config, lib, ... }:
let let
linkCommands = map linkCommands = map
(location: "$DRY_RUN_CMD ln -sf -T $VERBOSE_ARG \"/${location.type}/home/charlotte/${location.path}\" \"/home/charlotte/${location.path}\"") (location: ''
$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "/home/charlotte/$(dirname ${location.path})"
$DRY_RUN_CMD ln -sf -T $VERBOSE_ARG "/${location.type}/home/charlotte/${location.path}" "/home/charlotte/${location.path}"
'')
config.custom.zfs.homeLinks; config.custom.zfs.homeLinks;
in in
{ {