From 045e8e292ad4e8da555efccfab0f081ae24c55f5 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Wed, 25 Nov 2026 17:25:32 +0100 Subject: [PATCH] pinwheel: Read rv's teams from a secret rv watches a second team now. Both are listed in the work-rv-teams secret and read through rv's teamsFile, so the work module does not name the organisation. --- hosts/pinwheel/modules/work/default.nix | 8 +++++++- secrets/pinwheel/work-rv-teams.age | Bin 0 -> 395 bytes secrets/secrets.nix | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 secrets/pinwheel/work-rv-teams.age diff --git a/hosts/pinwheel/modules/work/default.nix b/hosts/pinwheel/modules/work/default.nix index a57c770..40fef2d 100644 --- a/hosts/pinwheel/modules/work/default.nix +++ b/hosts/pinwheel/modules/work/default.nix @@ -120,7 +120,7 @@ EOF enable = true; settings = { tokenFile = config.age.secrets.work-github-token.path; - teams = [ "work-org/content" ]; + teamsFile = config.age.secrets.work-rv-teams.path; }; }; @@ -198,6 +198,12 @@ EOF group = "users"; }; + "work-rv-teams" = lib.mkIf gitEnabled { + file = ../../../../secrets/pinwheel/work-rv-teams.age; + owner = "alex"; + group = "users"; + }; + "work-go-private" = lib.mkIf goEnabled { file = ../../../../secrets/pinwheel/work-go-private.age; owner = "alex"; diff --git a/secrets/pinwheel/work-rv-teams.age b/secrets/pinwheel/work-rv-teams.age new file mode 100644 index 0000000000000000000000000000000000000000..1c4aab65271145f0520e0cb4b1407e0f4d2f98d5 GIT binary patch literal 395 zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!+RO))YxHMCSHs|ZMnN>|8tH%_rA z4=Xh{FmUoN^7kqC@(3?5ipufwH%*H2an~+%(sm7v^wrOF%;!pV%Pq$=@ltJRm9CuhOY9GALcUvee7j zBCs;VJta8P&@ZF1%Dp@^B%kZVtele8rB*q`ota~s)8GMjGv{I+=gLH!M<8nz6IoC-LU@JE{8*J^d;^(*OV}rIe}w literal 0 HcmV?d00001 diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 00c0a5f..2945c04 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -23,6 +23,7 @@ in { "pinwheel/alex.pinwheel-git.ppp.pm.pub.age".publicKeys = [ pinwheel alex ]; "pinwheel/work-gitconfig.age".publicKeys = [ pinwheel alex ]; "pinwheel/work-github-token.age".publicKeys = [ pinwheel alex ]; + "pinwheel/work-rv-teams.age".publicKeys = [ pinwheel alex ]; "pinwheel/work-go-private.age".publicKeys = [ pinwheel alex ]; "pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ]; "pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];