Browse Source

automatically create authorized_keys

pull/1/head
Markus Schmidl 3 years ago
parent
commit
bcf4846371
  1. 7
      lib/admins.nix
  2. 2
      secrets

7
lib/admins.nix

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

2
secrets

@ -1 +1 @@
Subproject commit 3fbfe2f9a6949fee19d70c97d2e5ca27f9d6539f
Subproject commit d7e7ae4290c3e7d802b80f6815d1e99b97e49c44
Loading…
Cancel
Save