File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ export default async () => {
15
15
const cacheEnabled = cache . isFeatureAvailable ( ) ;
16
16
let cacheHit = false ;
17
17
let version ;
18
+ await exec ( "sudo" , [
19
+ "bash" ,
20
+ "-c" ,
21
+ "echo 'extra-trusted-substituters = https://cache.floxdev.com' >> /etc/nix/nix.conf" ,
22
+ ] ) ;
23
+ await exec ( "sudo" , [
24
+ "bash" ,
25
+ "-c" ,
26
+ "echo 'extra-trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= flox-store-public-0:8c/B+kjIaQ+BloCmNkRUKwaVPFWkriSAd0JJvuDu4F0=' >> /etc/nix/nix.conf" ,
27
+ ] ) ;
18
28
if ( cacheEnabled ) {
19
29
const cacheRestored = await restoreCache ( [ NIX_DIR , NIX_INSTALL_DIR ] , cacheKey ) ;
20
30
if ( cacheRestored ) {
Original file line number Diff line number Diff line change @@ -21,6 +21,17 @@ export default async (): Promise<{
21
21
let cacheHit = false ;
22
22
let version : string | undefined ;
23
23
24
+ await exec ( "sudo" , [
25
+ "bash" ,
26
+ "-c" ,
27
+ "echo 'extra-trusted-substituters = https://cache.floxdev.com' >> /etc/nix/nix.conf" ,
28
+ ] ) ;
29
+ await exec ( "sudo" , [
30
+ "bash" ,
31
+ "-c" ,
32
+ "echo 'extra-trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= flox-store-public-0:8c/B+kjIaQ+BloCmNkRUKwaVPFWkriSAd0JJvuDu4F0=' >> /etc/nix/nix.conf" ,
33
+ ] ) ;
34
+
24
35
if ( cacheEnabled ) {
25
36
const cacheRestored = await restoreCache (
26
37
[ NIX_DIR , NIX_INSTALL_DIR ] ,
You can’t perform that action at this time.
0 commit comments