feat: load read-only GitHub credential
This commit is contained in:
1 parent
af440f540d
commit
1996411136
1 file changed
+6
@@ -46,6 +46,12 @@ in
|
||||
personal.allowedSigners ++ work.allowedSigners ++ [ "" ]
|
||||
);
|
||||
|
||||
programs.zsh.initContent = ''
|
||||
if [[ -r "${config.xdg.configHome}/yookr/github-read-only.token" ]]; then
|
||||
export GH_TOKEN="$(< "${config.xdg.configHome}/yookr/github-read-only.token")"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
signing.format = "ssh";
|
||||
|
||||
Reference in new issue
Block a user