!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1179 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org194 Servers

Load older messages


SenderMessageTime
26 May 2021
@daiderd:matrix.orgLnLdepends on what went wrong16:05:57
@kloenk:petabyte.devFinn BehrensIf I look into the nix-daemon.plist (I don't have a clue how launchtl works), I see that NIX_SSL_CERT_FILE is set to /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt. But as this is the nix install itself, the path does not exists, as nix does not include this path16:09:30
@daiderd:matrix.orgLnLthe installer installs both nix and cacert in the profile by default with nix-env -i 16:10:12
@kloenk:petabyte.devFinn Behrens I'm installing nix via nix upgrade-nix --nix-store-path-urls <nix-store> seems like this is broken in nix master? 16:11:20
@daiderd:matrix.orgLnLupgrade-nix only works when used exactly right in my experience16:12:09
@kloenk:petabyte.devFinn Behrensok, maybe that is the issue. How would you suggest me to update the nix version, if I have a nix store path of a nix master build16:12:47
@daiderd:matrix.orgLnLdepending on the type of install you'll need to run it as the local user or sudo -i16:13:26
@kloenk:petabyte.devFinn Behrenssystem, so I have a daemon, and a seperate apfs volume for /nix16:13:48
@daiderd:matrix.orgLnLand it doesn't have any logic for services so won't restart the daemon, etc.16:13:44
@daiderd:matrix.orgLnLregardless of the update if you don't have cacert installed in the default profile you'll probably want to recover that first16:15:37
@daiderd:matrix.orgLnLhopefully there's still one laying around in the store that you can nix-env -i <path> otherwise run nix-env as root with NIX_SSL_CERT_FILE set to some random cert bundle to bypass the daemon16:17:19
@kloenk:petabyte.devFinn BehrensI would like to not use nix-env, but nix profile. Will try around a bit, thanks for the starting points16:18:02
@daiderd:matrix.orgLnLsame with that, unless you can't pass direct store paths as installables anymore16:20:13
@kloenk:petabyte.devFinn Behrens
In reply to @daiderd:matrix.org
same with that, unless you can't pass direct store paths as installables anymore
It's a bit more tricky, but last time I checked it worked as well
16:20:37
@kloenk:petabyte.devFinn BehrensWorked very well. Now have a dirty nix, and a ssl cert without remounting the store rw :-).16:31:19
@kloenk:petabyte.devFinn Behrens LnL: ++ (we need a bot xD) 16:31:26
@r_i_s:matrix.orgris_is the darwin sandbox enabled on hydra?19:23:27
@sandro:supersandro.deSandroDon't think so19:23:52
@r_i_s:matrix.orgris_that would explain a few things19:24:02
@daiderd:matrix.orgLnLno it's not, nixpkgs still needs some cleanup for that to work properly and I'm aware of at least one thing that's missing in the profile that breaks lots of rust builds19:26:56
@sandro:supersandro.deSandro ris_: nixpkgs-review does not turn on the darwin sandbox anymore since https://github.com/Mic92/nixpkgs-review/commit/aa9cc2f5e9199736af5167f8c3f406018b6a14e7 19:36:34
@r_i_s:matrix.orgris_i've been surprised at how many packages have built for me actually since i switched it on19:37:37
@daiderd:matrix.orgLnLif you're up for it I'd definitively recommend enabling it, means that sandboxing issues get some visibility and you can always --option sandbox false if something's broken that you can't or don't want to fix19:39:20
@atrius:matrix.orgmjlbachI had to use the latest nix master (not nixUnstable) in order to avoid many sandboxing issues on catalina19:39:53
@r_i_s:matrix.orgris_ completely separate topic - openvpn is failing to build for me on catalina, configure: error: route utility is required but missing - where would i get this from? 19:46:03
@r_i_s:matrix.orgris_clearly hydra is managing to build it, which is fun19:46:35
@sandro:supersandro.deSandro
In reply to @r_i_s:matrix.org
i've been surprised at how many packages have built for me actually since i switched it on
In my experience it works good enough if you are building leaf packages. If you are doing more core work things tend to break
19:46:38
@daiderd:matrix.orgLnLunixtools.route would be the generic attribute to use19:46:51
@daiderd:matrix.orgLnLI think this is once of those things that comes from different places depending on the platform19:47:28
@kloenk:petabyte.devFinn Behrens
In reply to @daiderd:matrix.org
if you're up for it I'd definitively recommend enabling it, means that sandboxing issues get some visibility and you can always --option sandbox false if something's broken that you can't or don't want to fix
Is it just sandbox = true, or do I have something else?
19:47:38

Show newer messages


Back to Room ListRoom Version: 6