Fix ssh permissions (take 4)
This commit is contained in:
parent
b6118974ec
commit
75425faa20
|
@ -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}"
|
||||||
];
|
];
|
||||||
# }}}
|
# }}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue