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));