Skip to content

Commit

Permalink
build: add caCertificates
Browse files Browse the repository at this point in the history
  • Loading branch information
drawbu committed Jun 11, 2024
1 parent 2be7768 commit d743042
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'';
postInstall = ''
wrapProgram $out/bin/app \
--prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [ git ])}
--prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [git])}
'';
};

Expand All @@ -50,12 +50,9 @@
created = "now";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ packages.app ];
};
config = {
Cmd = ["app"];
Env = ["SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"]; # wut
paths = [packages.app] ++ (with pkgs.dockerTools; [caCertificates]);
};
config.Cmd = ["app"];
};
};

Expand Down

0 comments on commit d743042

Please sign in to comment.