this post was submitted on 18 Aug 2024
13 points (100.0% liked)

Nix / NixOS

1732 readers
10 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

Hi!

I've ran into an issue with nix develop shells.

My setup:

  • Nix Darwin (macos)
  • Custom TLS certificates installed via nix darwin

Everything works as expected with the installed certificates, but as soon as I enter into a development shell with nix develop, the certificates are not available and thus, I get TLS errors that break whatever I'm doing in the dev shell. If I use an impure development shell, the issue disappears.

Is there a way to use pure nix develop shells which respect the installed certificates?

you are viewing a single comment's thread
view the rest of the comments
[–] onlinepersona@programming.dev 1 points 2 months ago (4 children)

Could you provide more information? Snippets of the config that are relevant e.g custom TLS certs config, what does the flake look like, self-signed TLS certs? What exactly is breaking? curl https://localhost:8080/something ?

Have you compared the environment variables?

Anti Commercial-AI license

[–] neo@lemmy.hacktheplanet.be 3 points 2 months ago

It’s almost as if you’d like OP to provide a reproducible example. If only there was a tool for that /s

load more comments (3 replies)