nix: add access-token for github

This commit is contained in:
Christoph Hollizeck 2026-02-18 23:58:24 +01:00
parent c9486641cc
commit 1aab156439
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
5 changed files with 54 additions and 49 deletions

View file

@ -59,7 +59,6 @@
];
sops = {
defaultSopsFile = ../../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age = {

View file

@ -34,9 +34,25 @@
clean.extraArgs = "--keep-since 7d --keep 5";
};
sops = {
secrets."github/pat" = {
sopsFile = ../../../secrets/secrets.yaml;
};
templates."access_tokens.conf" = {
content = ''
access-tokens = github.com=${config.sops.placeholder."github/pat"}
'';
owner = "root";
group = "secrets-access";
mode = "0440";
};
};
nix = {
package = pkgs.lix;
extraOptions = "!include ${config.sops.templates."access_tokens.conf".path}";
settings =
let
users = [
@ -47,6 +63,7 @@
++ lib.optional config.services.hydra.enable "hydra hydra-www hydra-evaluator";
in
{
nix-path = "nixpkgs=flake:nixpkgs";
experimental-features = "nix-command flakes";
http-connections = 50;