!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
14 May 2026
@viraptor:tchncs.deviraptorHonestly, I'm finding "yet another service I didn't know existed" every two weeks or so because it starts leaking memory from bigger builds. Life's too short, feedback gets ignored, "sudo kill ..." is the way00:33:56
@viraptor:tchncs.deviraptor* Honestly, I'm finding "yet another service I didn't know existed" every two weeks or so because it starts leaking memory from bigger builds. Life's too short, Apple feedback gets ignored, "sudo kill ..." is the way00:34:09
@hexa:lossy.networkhexathat's what I do00:34:11
@hexa:lossy.networkhexathat's what you see in the screenshot up there00:34:16
@hexa:lossy.networkhexakillall -9 fseventsd00:34:23
@ttp:mozilla.orgttphigh number of read/writes causes it to go up as well iirc so writing node_modules and nix stores etc can cause it to go haywire restarting it periodically shouldn't hurt it, but it is a sucky solution for something that should be doing nothing00:34:41
@hexa:lossy.networkhexa
  launchd.daemons.fseventsd-reclaim = {
    script = ''
      killall -9 fseventsd
    '';
    serviceConfig.StartInterval = 3600;
  };
00:34:58
@hexa:lossy.networkhexaI'm doing.00:35:02
@hexa:lossy.networkhexawe'll be fine00:35:08
@hexa:lossy.networkhexafrankly, it started getting worse once I fixed disk space issues00:36:17
@hexa:lossy.networkhexawhich probably increased throughput00:36:24
@hexa:lossy.networkhexawe also have this00:37:07
@hexa:lossy.networkhexa
# MacOS stores extensive logs in /var/db/uuidtext, which cause high disk usage
# Manually: find /var/db/uuidtext -type f -mtime +7 -delete
launchd.daemons.log-erase = {
  script = ''
    date
    log erase --all
  '';
  serviceConfig.StartInterval = 3600 * 24;
  serviceConfig.StandardErrorPath = "/var/log/uuidtext-gc.log";
  serviceConfig.StandardOutPath = "/var/log/uuidtext-gc.log";
};
00:37:11
@viraptor:tchncs.deviraptorMy recent "just kill the service" somehow resulted in moving its 20GB memory use under the kernel process with 30k threads instead... So yeah. Quality system.00:37:55
@hexa:lossy.networkhexaIt's fine.00:38:30
@hexa:lossy.networkhexamacs are an AI platform now00:38:34
@hexa:lossy.networkhexawith thunderbolt clustering00:38:38
@hexa:lossy.networkhexawhere macs are going you don't need memory anyway00:38:58
@ttp:mozilla.orgttpimage.png
Download image.png
00:41:33
@hexa:lossy.networkhexaquestion00:59:09
@hexa:lossy.networkhexa we have environment.darwinConfig = "/nix/home/darwin-config/macs/nix-darwin.nix"; configured 00:59:17
@hexa:lossy.networkhexabut there is no file at that place on the machines00:59:25
@hexa:lossy.networkhexa
        The path of the darwin configuration.nix used to configure the system,
        this updates the default darwin-config entry in NIX_PATH. Since this
        changes an environment variable it will only apply to new shells.

        NOTE: Changing this requires running {command}`darwin-rebuild switch -I darwin-config=/path/to/configuration.nix`
        the first time to make darwin-rebuild aware of the custom location.
00:59:53
@hexa:lossy.networkhexathis is the description for that option00:59:57
@hexa:lossy.networkhexais that like /etc/nixos/configuration.nix01:00:11
@hexa:lossy.networkhexa and since we use darwin-rebuild --flake we can just drop this setting? 01:00:31
@reckenrode:matrix.orgRandy EckenrodeI don’t know what causes it, but something about Nix causes its memory usage to go out of control. I usually reboot when it gets bad.01:01:15
@hexa:lossy.networkhexasigkill works well enough01:01:31
@hexa:lossy.networkhexait comes back and I can kill it again the next day01:01:43
19 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:22:35

Show newer messages


Back to Room ListRoom Version: 6