feat: add github access token for nix
This commit is contained in:
parent
20cae34e85
commit
6657d4e7a2
3 changed files with 17 additions and 1 deletions
|
@ -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;
|
||||
|
|
10
secrets/nix-github-token.age
Normal file
10
secrets/nix-github-token.age
Normal file
|
@ -0,0 +1,10 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 CjuqfA H1gL8k/o7kvJoVEZ0UrbUv1G7Ceb3cUCIVFhch9rDhc
|
||||
0531muHlievVhT5piGLXC+/zOymCkPM9P9csRxLsnpM
|
||||
-> ssh-ed25519 wG6LYg Z9cm/TUZbV35tzgHywx1AHmF8jrFFqBl3sCIELEvcH0
|
||||
OmLY/ThgZ4f8CFFA5YpYFiRK+ro7cBqoFY6UY7/VS8I
|
||||
-> ssh-ed25519 ZYd7Zg xpjSILAYRyQ4kkbdLAVJQXChX+t/DeL3qWWJae2sczI
|
||||
wamYh70/AGSh5j4uqsPFTvn36E3TmGoVL8XlxbSfX9g
|
||||
--- NNsTU7Fsi/WLegSpkuoNaxN0kFQG38mgdhCQ8y+CSQE
|
||||
vâî"²úÃF
|
||||
‘=‹‰rûazÜ6h<>ÍQâN÷&DpvðGÄXQ$d7tíˆÝˆElÃIèÀXŠãYrV'‚ç×ï)J¬€Hí<48>ɦ Úƒ?fåœÊWÃH_Ô®Ô±‰ª"
|
|
@ -28,4 +28,5 @@ in
|
|||
"exercism.age".publicKeys = personal;
|
||||
"openai.age".publicKeys = personal;
|
||||
"anthropic.age".publicKeys = personal;
|
||||
"nix-github-token.age".publicKeys = personal;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue