gmail api secret working
This commit is contained in:
@@ -13,10 +13,25 @@ in
|
||||
defaultSopsFile = ../keys/secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
|
||||
secrets.gmail_api_credentials = {
|
||||
sopsFile = ../keys/gmail_api_credentials.json;
|
||||
format = "json";
|
||||
path = "${config.home.homeDirectory}/.config/gmail_api_credentials.json";
|
||||
secrets."api/gmail_client_secret" = { };
|
||||
|
||||
templates."gmail_creds" = {
|
||||
content = ''
|
||||
{
|
||||
"installed": {
|
||||
"client_id": "499012320469-vtml6emu6bmujpsj9lud2b44jqu7h26j.apps.googleusercontent.com",
|
||||
"project_id": "python-apis-423500",
|
||||
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
||||
"token_uri": "https://oauth2.googleapis.com/token",
|
||||
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
||||
"client_secret": "${config.sops.placeholder."api/gmail_client_secret"}",
|
||||
"redirect_uris": [
|
||||
"http://localhost"
|
||||
]
|
||||
}
|
||||
}
|
||||
'';
|
||||
path = "${config.xdg.configHome}/sops-nix/gmail_api_credentials.json";
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user