feat: add github access token for higher api limit

This commit is contained in:
matt1432 2024-01-09 09:17:54 -05:00
parent 907ad13aa8
commit b0542f4f2d
3 changed files with 51 additions and 39 deletions
common/modules

View file

@ -1,8 +1,17 @@
{nixpkgs, ...}: {
{
config,
lib,
nixpkgs,
...
}:
with lib; {
# Minimize dowloads of indirect nixpkgs flakes
nix = {
registry.nixpkgs.flake = nixpkgs;
nixPath = ["nixpkgs=${nixpkgs}"];
extraOptions = optionalAttrs (hasAttr "sops" config) ''
!include ${config.sops.secrets.access-token.path}
'';
};
# Global hm settings