Browse Source

automatically create authorized_keys

Markus Schmidl 1 month ago
parent
commit
bcf4846371
2 changed files with 4 additions and 5 deletions
  1. 3
    4
      lib/admins.nix
  2. 1
    1
      secrets

+ 3
- 4
lib/admins.nix View File

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

+ 1
- 1
secrets

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