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
|
|
|
|
[
|
|
|
|
"d ${ssh}/ssh/.ssh"
|
|
|
|
"e ${ssh}/ssh/.ssh/id_rsa 0700"
|
|
|
|
"e ${ssh}/id_ed25519 0700"
|
|
|
|
];
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|