2024-08-26 23:30:04 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2023-01-10 02:38:06 +01:00
|
|
|
programs.ssh.enable = true;
|
|
|
|
|
2023-11-04 20:51:56 +01:00
|
|
|
satellite.persistence.at.state.apps.ssh.directories = [ ".ssh" ];
|
2024-08-26 23:30:04 +02:00
|
|
|
systemd.user.tmpfiles.rules =
|
|
|
|
let
|
|
|
|
ssh = "${config.satellite.persistence.at.state.home}/ssh/.ssh";
|
|
|
|
in
|
|
|
|
[
|
2024-08-27 23:15:18 +02:00
|
|
|
"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"
|
2024-08-26 23:30:04 +02:00
|
|
|
];
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|