1
Fork 0

Fix ssh permissions (take 3)

This commit is contained in:
prescientmoon 2024-08-27 23:28:37 +02:00
parent e3147858c3
commit b6118974ec
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 21 additions and 10 deletions
home/features/cli

View file

@ -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"
];
}