!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
14 May 2026
@hexa:lossy.networkhexaI'm so close to just set up a launchd service that kills it every hour00:23:37
@emilazy:matrix.orgemily are the /nix/store or the build directories perhaps getting indexed by Spotlight? 00:24:36
@hexa:lossy.networkhexahow would I know00:29:30
@hexa:lossy.networkhexahow do macos users not have extensive knowledge here :D00:29:52
@hexa:lossy.networkhexawe have this00:30:55
@hexa:lossy.networkhexa
  system.activationScripts.postActivation.text = ''
    printf "disabling spotlight indexing... "
    mdutil -i off -d / &> /dev/null
    mdutil -E / &> /dev/null
    echo "ok"
  '';

00:30:57
@hexa:lossy.networkhexaso it's probably not that00:31:00
@hexa:lossy.networkhexaRedacted or Malformed Event00:31:03
@hexa:lossy.networkhexahttps://github.com/nix-darwin/nix-darwin/commit/4757a160e2289c2d1e7575106ea501887a12320600:31:16
@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

Show newer messages


Back to Room ListRoom Version: 6