1
Fork 0

Fix ssh permissions (take 4)

This commit is contained in:
prescientmoon 2024-08-27 23:35:21 +02:00
parent b6118974ec
commit 75425faa20
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -58,12 +58,13 @@
systemd.tmpfiles.rules = systemd.tmpfiles.rules =
let let
user = config.users.users.pilot; user = config.users.users.pilot;
ssh = "/persist/state/${user.home}/ssh/.ssh"; root = "/persist/state/${user.home}/ssh";
in in
[ [
"d ${ssh} 0755 ${user.name} ${user.group}" "d ${root} 0755 ${user.name} ${user.group}"
"e ${ssh}/id_rsa 0700 ${user.name} ${user.group}" "d ${root}/.ssh 0755 ${user.name} ${user.group}"
"e ${ssh}/id_ed25519 0700 ${user.name} ${user.group}" "e ${root}/.ssh/id_rsa 0700 ${user.name} ${user.group}"
"e ${root}/.ssh/id_ed25519 0700 ${user.name} ${user.group}"
]; ];
# }}} # }}}
} }