pinwheel: Add GitHub environment variables for work
This commit is contained in:
@@ -5,6 +5,11 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
home-manager.users.alex = {
|
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 {
|
programs.git = lib.mkIf gitEnabled {
|
||||||
includes = [
|
includes = [
|
||||||
{
|
{
|
||||||
@@ -39,6 +44,13 @@ in
|
|||||||
group = "users";
|
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 {
|
"work-staging-ovpn" = lib.mkIf openvpnEnabled {
|
||||||
file = ../../../../secrets/pinwheel/work-staging-ovpn.age;
|
file = ../../../../secrets/pinwheel/work-staging-ovpn.age;
|
||||||
};
|
};
|
||||||
|
|||||||
BIN
secrets/pinwheel/work-github-token.age
Normal file
BIN
secrets/pinwheel/work-github-token.age
Normal file
Binary file not shown.
@@ -16,6 +16,7 @@ in {
|
|||||||
"pinwheel/alex.pinwheel-codeberg.org.pub.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/alex.pinwheel-codeberg.org.pub.age".publicKeys = [ pinwheel alex ];
|
||||||
|
|
||||||
"pinwheel/work-gitconfig.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-gitconfig.age".publicKeys = [ pinwheel alex ];
|
||||||
|
"pinwheel/work-github-token.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user