diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-10-20T13·49-0400 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2021-10-20T14·07+0000 |
commit | 263260bbdf04ba595f993dbb19d9c66452f36d64 (patch) | |
tree | 42fbb9950f1c8403536f2a4cba091daf0b932172 /users/grfn | |
parent | d70cb4c6417fcb5ea37ef8fb70c59e482f039c68 (diff) |
feat(gws.fyi): Host ssh key r/2983
Change-Id: I387ead1daa65a3b39c3771f95f5f6734aebabea9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3737 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/grfn')
-rw-r--r-- | users/grfn/gws.fyi/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/users/grfn/gws.fyi/default.nix b/users/grfn/gws.fyi/default.nix index 1796c0bf74cf..5b7d8fc0e19a 100644 --- a/users/grfn/gws.fyi/default.nix +++ b/users/grfn/gws.fyi/default.nix @@ -1,4 +1,4 @@ -args@{ pkgs, ... }: +args@{ pkgs, depot, ... }: with pkgs; let site = import ./site.nix args; @@ -12,6 +12,11 @@ let minify --type css < ${./main.css} > $out ''; + keys = runCommand "ssh-keys" {} '' + touch $out + echo "${depot.users.grfn.keys.main}" >> $out + ''; + website = runCommand "gws.fyi" { } '' mkdir -p $out @@ -19,6 +24,7 @@ let cp ${site.index} $out/index.html cp -r ${site.recipes} $out/recipes cp ${resume} $out/resume.pdf + cp ${keys} $out/keys ''; in (writeShellScript "deploy.sh" '' |