Fix linking to non-existent directories
This commit is contained in:
parent
3fc7502b31
commit
4f0ffa2146
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue