feat: add github access token for nix

This commit is contained in:
Moritz Böhme 2024-10-25 11:16:29 +02:00
parent 20cae34e85
commit 6657d4e7a2
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
3 changed files with 17 additions and 1 deletions

View file

@ -44,12 +44,17 @@ in
nix = config.nix.package;
};
age.secrets.nix-github-token.file = ../../secrets/nix-github-token.age;
nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
package = pkgs.nix;
extraOptions = "experimental-features = nix-command flakes";
extraOptions = ''
!include ${config.age.secrets.nix-github-token.path}
experimental-features = nix-command flakes
'';
gc = {
automatic = cfg.gc.enable;