Fix ssh permissions (take 3)
This commit is contained in:
parent
e3147858c3
commit
b6118974ec
2 changed files with 21 additions and 10 deletions
home/features/cli
|
@ -1,15 +1,5 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
programs.ssh.enable = true;
|
||||
|
||||
satellite.persistence.at.state.apps.ssh.directories = [ ".ssh" ];
|
||||
systemd.user.tmpfiles.rules =
|
||||
let
|
||||
ssh = "${config.satellite.persistence.at.state.home}/ssh/.ssh";
|
||||
in
|
||||
[
|
||||
"d ${ssh} 0755 ${config.home.username} users"
|
||||
"e ${ssh}/id_rsa 0700 ${config.home.username} users"
|
||||
"e ${ssh}/id_ed25519 0700 ${config.home.username} users"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue