feat(nix): github token

This commit is contained in:
2025-07-22 17:32:34 +08:00
parent 8ca0a6cc0f
commit fef786d317
2 changed files with 36 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
config,
lib,
pkgs,
secrets,
...
}:
lib.my.makeSwitch {
@@ -48,6 +49,14 @@ lib.my.makeSwitch {
];
};
sops.secrets.nix-github-token = {
sopsFile = secrets.nix-github-token;
format = "binary";
};
nix.extraOptions = ''
!include ${config.sops.secrets.nix-github-token.path}
'';
# uncomment to enable auto gc
/*
nix.gc = {