!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1186 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
27 Apr 2026
@emilio-ak:matrix.orgEmilioAK joined the room.16:07:42
@emilio-ak:matrix.orgEmilioAK I've installed fish, but for some reason there seems to be a path issue only in fish. sudo darwin-rebuild doesn't work while sudo /run/current-system/sw/bin/darwin-rebuild does, though this issue isn't present in zsh. What could be the cause of this? 16:11:16
@samasaur:matrix.orgsamasaur set programs.fish.enable = true in your nix-darwin and home-manager config 16:12:14
@samasaur:matrix.orgsamasaur(whichever applicable)16:12:27
@samasaur:matrix.orgsamasaurbash and zsh default to enabled but fish does not16:12:51
@emilio-ak:matrix.orgEmilioAKThat was already set for me. Also relevant is that I activate fish though ghostty, I haven't set it as my default shell16:13:45
@samasaur:matrix.orgsamasaurif you aren't using either then I'm not sure16:13:46
@samasaur:matrix.orgsamasauroh huh16:13:57
@emilio-ak:matrix.orgEmilioAKI mean you shouldn't set fish as the default right? Since it's not posix compliant I mean?16:14:16
@reckenrode:matrix.orgRandy Eckenrode I set it as the default shell. POSIX scripts that care use /bin/sh or /bin/bash (or the appropriate store paths). 16:15:45
@reckenrode:matrix.orgRandy Eckenrode * I set it as the default shell. Scripts use /bin/sh or /bin/bash (or the appropriate store paths). 16:15:56
@reckenrode:matrix.orgRandy Eckenrode Something that does whatever with $SHELL may have trouble, but things I care about know about Fish. 16:16:20
@emilio-ak:matrix.orgEmilioAKMy dotfiles are here in case anyone wants to look https://github.com/EmilioAK/dotfiles16:17:28
@emilio-ak:matrix.orgEmilioAK

I'll also note that I installed fish though homebrew here, but since I did set these it should still inject the correct path no?

programs.fish.enable = true;
programs.fish.useBabelfish = true;
16:18:25
@insipx:matrix.orginsipx check what which fish returns. i've had issues in the past of using homebrew paths when nix should have been usedf. 16:20:10
@insipx:matrix.orginsipx * check what which fish returns. i've had issues in the past of using homebrew paths when nix should have been used. 16:20:15
@emilio-ak:matrix.orgEmilioAK /opt/homebrew/bin/fish as expected 16:21:10
@emilio-ak:matrix.orgEmilioAK Maybe launching fish with /opt/homebrew/bin/fish --login doesn't use the injected path from nix? Trying to look into it 16:22:06
@emilazy:matrix.orgemilyit's expected that you use Nixpkgs fish16:28:39
@emilio-ak:matrix.orgEmilioAK I'm also trying this, but with this approach what's the intended way to launch the shell? /run/current-system/sw/bin/fish doesn't seem to work for me 16:51:35
@samasaur:matrix.orgsamasaur elaborate? what are you seeing when you say "doesn't seem to work for me"? 17:00:16
@reckenrode:matrix.orgRandy EckenrodeIs this the code-signing issue?17:01:13
@emilio-ak:matrix.orgEmilioAKScreenshot 2026-04-27 at 20.15.08.png
Download Screenshot 2026-04-27 at 20.15.08.png
18:15:16
@emilio-ak:matrix.orgEmilioAK So I'm not sure where to begin here. I'm trying to switch to fish now instead and that isn't working either. I have it set in my nix file, but after trying to do chsh -s /run/current-system/sw/bin/fish nothing happens, and /etc/shells looks empty? Not sure what could be going wrong here 18:15:19
@emilio-ak:matrix.orgEmilioAKShoulnd't this just work, or am I missing something? Like for you guys who actually have fish setup what does your config look like?18:17:49
@emilio-ak:matrix.orgEmilioAK

Homebrew fish works besides not having access to nix commands. Only workaround that does work so far is adding this to my system.nix file, but this seems like a hacky workaround. Like surely there is some way to make this actually work or?

security.sudo.extraConfig = ''
  Defaults secure_path="/Users/${username}/.nix-profile/bin:/etc/profiles/per-user/${username}/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
'';
18:20:19
@emilio-ak:matrix.orgEmilioAKHas anyone here managed to configure your color filters? The accessiblity setting22:33:55
28 Apr 2026
@viraptor:tchncs.deviraptor you should be able to set it with defaults (available on nix-darwin). I think you're talking about: com.apple.Accessibility.{DarkenSystemColors,GrayscaleDisplay,InvertColorsEnabled}, right? Should be possible under system.defaults 12:02:14
@emilio-ak:matrix.orgEmilioAK

I ended up doing this, but not sure if there's a better way. I don't think the options you're talking about are the same, this is adding a color tint to the screen:

CustomUserPreferences = {
      # Observed from System Settings after configuring Color Filters.
      "com.apple.mediaaccessibility" = {
        "__Color__-MADisplayFilterCategoryEnabled" = 0;
        "__Color__-MADisplayFilterType" = 16;
        MADisplayFilterSingleColorIntensity = 0.7100822925567627;
      };
13:01:44
@emilio-ak:matrix.orgEmilioAKI think I'm pretty much done with my first config now if anyone wants to take a look and give feedback or anything. Did this on a VM while trying to recreate my current setup ๐Ÿ˜ https://github.com/EmilioAK/nix-darwin-config13:05:02

There are no newer messages yet.


Back to Room ListRoom Version: 6