| 27 Apr 2026 |
| EmilioAK joined the room. | 16:07:42 |
EmilioAK | 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 | set programs.fish.enable = true in your nix-darwin and home-manager config | 16:12:14 |
samasaur | (whichever applicable) | 16:12:27 |
samasaur | bash and zsh default to enabled but fish does not | 16:12:51 |
EmilioAK | That was already set for me. Also relevant is that I activate fish though ghostty, I haven't set it as my default shell | 16:13:45 |
samasaur | if you aren't using either then I'm not sure | 16:13:46 |
samasaur | oh huh | 16:13:57 |
EmilioAK | I mean you shouldn't set fish as the default right? Since it's not posix compliant I mean? | 16:14:16 |
Randy 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 |
Randy Eckenrode | * I set it as the default shell. Scripts use /bin/sh or /bin/bash (or the appropriate store paths). | 16:15:56 |
Randy Eckenrode | Something that does whatever with $SHELL may have trouble, but things I care about know about Fish. | 16:16:20 |
EmilioAK | My dotfiles are here in case anyone wants to look https://github.com/EmilioAK/dotfiles | 16:17:28 |
EmilioAK | 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 | 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 | * 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 |
EmilioAK | /opt/homebrew/bin/fish as expected | 16:21:10 |
EmilioAK | 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 |
emily | it's expected that you use Nixpkgs fish | 16:28:39 |
EmilioAK | 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 | elaborate? what are you seeing when you say "doesn't seem to work for me"? | 17:00:16 |
Randy Eckenrode | Is this the code-signing issue? | 17:01:13 |
EmilioAK |  Download Screenshot 2026-04-27 at 20.15.08.png | 18:15:16 |
EmilioAK | 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 |
EmilioAK | Shoulnd'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 |
EmilioAK | 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 |
EmilioAK | Has anyone here managed to configure your color filters? The accessiblity setting | 22:33:55 |
| 28 Apr 2026 |
viraptor | 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 |
EmilioAK | 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 |
EmilioAK | I 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-config | 13:05:02 |