about summary refs log tree commit diff
path: root/users/grfn
diff options
context:
space:
mode:
authorAspen Smith <root@gws.fyi>2024-01-18T15·30-0500
committeraspen <root@gws.fyi>2024-01-18T17·24+0000
commitf169a56ad60514fd74f8d23b326f634b387b443b (patch)
tree8c1a6b675090970d85b7d10f5da2f4be0268895f /users/grfn
parentff144d8c62fc2bbbafc1cbfa94b08da525493345 (diff)
feat(grfn/system): Use mugwump as a substituter for ogopogo r/7419
Change-Id: I8ecd8543d1856e2361ee72d9a5ace7e281909063
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10663
Reviewed-by: aspen <root@gws.fyi>
Autosubmit: aspen <root@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn')
-rw-r--r--users/grfn/system/system/machines/mugwump.nix4
-rw-r--r--users/grfn/system/system/machines/ogopogo.nix9
2 files changed, 13 insertions, 0 deletions
diff --git a/users/grfn/system/system/machines/mugwump.nix b/users/grfn/system/system/machines/mugwump.nix
index 208cc32648..5b3cf12049 100644
--- a/users/grfn/system/system/machines/mugwump.nix
+++ b/users/grfn/system/system/machines/mugwump.nix
@@ -73,6 +73,10 @@ with lib;
 
   nix.gc.dates = "monthly";
 
+  users.users.grfn.openssh.authorizedKeys.keys = [
+    depot.users.grfn.keys.whitby
+  ];
+
   age.secrets =
     let
       secret = name: depot.users.grfn.secrets."${name}.age";
diff --git a/users/grfn/system/system/machines/ogopogo.nix b/users/grfn/system/system/machines/ogopogo.nix
index d6b70d834f..af7075a97f 100644
--- a/users/grfn/system/system/machines/ogopogo.nix
+++ b/users/grfn/system/system/machines/ogopogo.nix
@@ -137,4 +137,13 @@
         mode = "0440";
       };
     };
+
+  nix.settings.substituters = [ "ssh://grfn@172.16.0.5" ];
+  nix.settings.trusted-substituters = [ "ssh://grfn@172.16.0.5" ];
+  programs.ssh.knownHosts.mugwump = {
+    extraHostNames = [ "172.16.0.5" ];
+    publicKeyFile = pkgs.writeText "mugwump.pub" ''
+      ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFE2fxPgWO+zeQoLBTgsgxP7Vg7QNHlrQ+Rb3fHFTomB
+    '';
+  };
 }