Commit 14f7eafa1754

Vincent Demeester <vincent@sbr.pm>
2025-05-22 17:34:00
systems: fix ssh root access…
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent e49fac4
Changed files (3)
systems/common/users/default.nix
@@ -2,6 +2,7 @@
 {
   # Default users, to create everywhere
   imports = [
+    ./root.nix
     ./vincent.nix
   ];
   users.motd = with config; ''
systems/common/users/root.nix
@@ -0,0 +1,9 @@
+{
+  globals,
+  ...
+}:
+{
+  users.users.root = {
+    openssh.authorizedKeys.keys = globals.ssh.vincent ++ [ globals.machines.shikoku.ssh.vincent ];
+  };
+}
globals.nix
@@ -109,6 +109,11 @@
         };
       };
     };
+    shikoku = {
+      ssh = {
+        vincent = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGxstR3xEf87leVVDS3GVPx8Ap9+eP+OfkSvM26V54XP vincent@shikoku";
+      };
+    };
   };
   # FIXME Maybe I should move this elsewhere, in ./lib maybe ?
   fn = {