From 42166b10a7d38f18cb08fdd2374f39dd25e66de2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 16 May 2024 16:53:10 +0200 Subject: [PATCH] Avoid typing out the home path --- lib/modules/custom-build-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/custom-build-vm.nix b/lib/modules/custom-build-vm.nix index 1510b64..745b7bb 100644 --- a/lib/modules/custom-build-vm.nix +++ b/lib/modules/custom-build-vm.nix @@ -154,7 +154,7 @@ in { in { "userKeys-${name}" = { source = "${homeDir}/.ssh"; - target = "/home/${name}/.ssh"; + target = "${config.users.users.${name}.home}/.ssh"; }; }) config.users.myUsers));