From d9ea94dc4487fb668f98e512f96506a5eaf566c2 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 26 Jun 2025 20:33:32 +0800 Subject: [PATCH] system: skeleton-directory: Create parent directory for target. This allows specifying the following skeleton, for example: --8<---------------cut here---------------start------------->8--- `((".config/test.txt" ,[...]) --8<---------------cut here---------------end--------------->8--- * gnu/system/shadow.scm (skeleton-directory): Create parent directory for target. Change-Id: I49649000bd6cdab9060f057b47a5122b17027f10 --- gnu/system/shadow.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 792d2fb7aee..c257cb329ba 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -323,6 +323,7 @@ home-config")) ;; would just copy the symlinks as is. (for-each (match-lambda ((target source) + (mkdir-p (dirname target)) (copy-recursively source target))) '#$skeletons) ;; Make nanorc respect XDG_CONFIG_HOME.