From 02361e42cf72304399aa8bc77dd8ad1fab5300a0 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 27 Dec 2024 18:14:36 -0800 Subject: [PATCH] feat(gh): use agenix to automatically authenticate gh cli --- reference/secrets/default.nix | 7 +++++++ reference/secrets/github_cli_secret_config.age | Bin 0 -> 1557 bytes reference/secrets/secrets.nix | 1 + 3 files changed, 8 insertions(+) create mode 100644 reference/secrets/github_cli_secret_config.age diff --git a/reference/secrets/default.nix b/reference/secrets/default.nix index 5257833..fd59188 100644 --- a/reference/secrets/default.nix +++ b/reference/secrets/default.nix @@ -24,5 +24,12 @@ group = "users"; mode = "600"; }; + github_cli_secret_config = { + file = ./github_cli_secret_config.age; + owner = "youwen"; + group = "users"; + mode = "600"; + path = "/home/youwen/.config/gh/hosts.yml"; + }; }; } diff --git a/reference/secrets/github_cli_secret_config.age b/reference/secrets/github_cli_secret_config.age new file mode 100644 index 0000000000000000000000000000000000000000..2287fa0a1a25171cdf2120f3a51f406a5b948d41 GIT binary patch literal 1557 zcmYk)+pFXT0f2E^RMwz~EV5L5IJmyZc$&*hZYx$NC)Y`4l1wI-Nd-5TNhY_+eR8p4 zg%(5*TAzHdB1P(2p<1adx(ZUMh*dmAP`3|?NTpD*bXlw*bUly$3*YZ^!rkfa;8jD> zMET*tyb8f144gi6QrG*_s&-Ch1x7n6z%+8G&19Jp$1S3au1Yl`FRewKU-C+;&y;MZ zqqEFnlB8X@hO>v9u1$Mf?+kew4qGVwE|s-Dwfr3oNAp$basj|_ot47 zuv!}GY44^WotU<)N+C5B8Uu)uDNiRL9U-2Wq=QwI1tD&IB(jE0oXnxjW8ga6}C)Lm46Q+Lbkzg?tS$ zFleKYeXK$E;4PR*<^smJUxe8@2-_VrF+6seZ8MfR)`So!8C$N$NK5>kFw5$k7L&7M z7NJ}>3ygrTNS^BoAZ;_+A@bf>Z)lV-ZF3C8rATxgC72hTL=g4~m5$&wM$HetKU+3=GV4bTKCxtC*qsz*1YJj75w%;6&B6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