ssh-keys service, draft

This commit is contained in:
Daniel Barlow 2024-08-25 15:09:31 +01:00
parent 89912c766b
commit 1b4106e2a3
1 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,15 @@ in rec {
dependencies = [ services.wan-address-for-secrets ];
};
services.ssh-keys = longrun {
name = "write-ssh-keys";
run = ''
mkdir -p /run/authorized_keys
exec ${pkgs.watch-ssh-keys}/bin/watch-ssh-keys -d /run/authorized_keys ${services.secrets} ssh/authorizedKeys
'';
dependencies = [ services.secrets ] ;
};
services.wwan = svc.wwan.huawei-e3372.build {
apn = "data.uk";
username = "user";