Commit 6aeb50b0fb5f

Vincent Demeester <vincent@sbr.pm>
2026-07-02 09:55:05
style(nix): reformat ssh key resolver and root keys
Applied nixfmt reflow to the ssh key access resolver and root authorized keys list; no behavioural change.
1 parent 4dd98d4
Changed files (2)
lib
systems
common
lib/functions.nix
@@ -374,7 +374,11 @@ let
             else
               throw "ssh key '${label}': missing non-empty 'access'";
           ua = access.${account} or null;
-          leaf = if builtins.isString ua then ua else (if ua == null then null else (ua.${host} or ua.default or null));
+          leaf =
+            if builtins.isString ua then
+              ua
+            else
+              (if ua == null then null else (ua.${host} or ua.default or null));
         in
         if ua == null then null else resolveLeaf label leaf entry.key;
     in
systems/common/users/root.nix
@@ -6,8 +6,8 @@
 }:
 {
   users.users.root = {
-    openssh.authorizedKeys.keys =
-      libx.authorizedKeysFor globals.ssh.vincent hostname "root"
-      ++ [ globals.machines.shikoku.ssh.vincent ];
+    openssh.authorizedKeys.keys = libx.authorizedKeysFor globals.ssh.vincent hostname "root" ++ [
+      globals.machines.shikoku.ssh.vincent
+    ];
   };
 }