diff --git a/modules/home-manager-modules/openssh.nix b/modules/home-manager-modules/openssh.nix index df78828..7b646b8 100644 --- a/modules/home-manager-modules/openssh.nix +++ b/modules/home-manager-modules/openssh.nix @@ -77,6 +77,8 @@ ${lib.optionalString (hostKey ? openSSHFormat && hostKey.openSSHFormat) "-o"} \ -f "${path}" \ -N "" + chown ${config.home.username} ${path}* + chgrp ${config.home.username} ${path}* fi '' }";