pinwheel: Add GitHub environment variables for work

This commit is contained in:
Alexander Heldt
2024-05-04 17:42:23 +02:00
parent 93c082b244
commit c46a02af61
3 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ let
in
{
home-manager.users.alex = {
home.sessionVariables = {
GITHUB_ACTOR="Alexander Heldt";
GITHUB_TOKEN="$(${pkgs.coreutils}/bin/cat ${config.age.secrets.work-github-token.path})";
};
programs.git = lib.mkIf gitEnabled {
includes = [
{
@@ -39,6 +44,13 @@ in
group = "users";
};
"work-github-token" = lib.mkIf gitEnabled {
file = ../../../../secrets/pinwheel/work-github-token.age;
path = "/home/alex/code/work/.work-github-token";
owner = "alex";
group = "users";
};
"work-staging-ovpn" = lib.mkIf openvpnEnabled {
file = ../../../../secrets/pinwheel/work-staging-ovpn.age;
};