nixos, home-manager: Handle whitespace in persistentStoragePaths

This commit is contained in:
talyz 2020-06-07 10:08:18 +02:00
parent 13ff4509fc
commit 2472286e92
No known key found for this signature in database
GPG key ID: 2DED2151F4671A2B
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ in
'';
mkDirCreationScriptForPath = persistentStoragePath: {
name = "createDirsIn-${replaceStrings [ "/" "." ] [ "-" "" ] persistentStoragePath}";
name = "createDirsIn-${replaceStrings [ "/" "." " " ] [ "-" "" "" ] persistentStoragePath}";
value =
dag.entryAfter
[ "writeBoundary" ]

View file

@ -93,7 +93,7 @@ in
mkDirCreationScriptForPath = persistentStoragePath:
nameValuePair
"createDirsIn-${replaceStrings [ "/" "." ] [ "-" "" ] persistentStoragePath}"
"createDirsIn-${replaceStrings [ "/" "." " " ] [ "-" "" "" ] persistentStoragePath}"
(noDepEntry (concatMapStrings
(mkDirCreationSnippet persistentStoragePath)
cfg.${persistentStoragePath}.directories