diff --git a/modules/zfs.nix b/modules/zfs.nix index 03b08e63..baa0b0e5 100644 --- a/modules/zfs.nix +++ b/modules/zfs.nix @@ -1,7 +1,10 @@ { config, lib, ... }: let 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; in {