pinwheel: Add GitHub environment variables for work
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user