automatically create authorized_keys

This commit is contained in:
Markus Schmidl 2019-05-01 00:39:48 +02:00
parent b333024bac
commit bcf4846371
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
{ config, ... }: { config, ... }:
{ {
users.users.root.openssh.authorizedKeys.keys = imports = [
if config.services.openssh.enable ../secrets/lib/authorized_keys
then (import ../secrets/lib/authorized_keys).admins ];
else [];
} }

@ -1 +1 @@
Subproject commit 3fbfe2f9a6949fee19d70c97d2e5ca27f9d6539f Subproject commit d7e7ae4290c3e7d802b80f6815d1e99b97e49c44