Nix on macOS | 1203 Members | |
| βThere are still many issues with the Darwin platform but most of it is quite usable.β β http://yves.gnu-darwin.org | 200 Servers |
| Sender | Message | Time |
|---|---|---|
| 27 Apr 2026 | ||
/opt/homebrew/bin/fish as expected | 16:21:10 | |
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 | |
| it's expected that you use Nixpkgs fish | 16:28:39 | |
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 | |
| elaborate? what are you seeing when you say "doesn't seem to work for me"? | 17:00:16 | |
| Is this the code-signing issue? | 17:01:13 | |
Download Screenshot 2026-04-27 at 20.15.08.png | 18:15:16 | |
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 | |
| 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 | |
| Homebrew fish works besides not having access to nix commands. Only workaround that does work so far is adding this to my
| 18:20:19 | |
| Has anyone here managed to configure your color filters? The accessiblity setting | 22:33:55 | |
| 28 Apr 2026 | ||
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 | |
| 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:
| 13:01:44 | |
| 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 | |
| I dunno about color filters, but I'd be very careful about setting non-packaged preferences on nix-darwin | 23:01:18 | |
| messing with some of them can bork your system and force you to log into recovery mode or whatever it's called to repair the plist files manually | 23:02:07 | |
| ask me how I know | 23:02:48 | |
| happened to me with setting the locale or language or something | 23:03:13 | |
| 29 Apr 2026 | ||
| 12:47:27 | ||
| Hey there, I'm very new to nix & nix-darwin; I was just reading into it over the weekend for several hours and have one question before going to try it out: Let's say I just set one single element in systems.default (e.g. dock.autohide) and then let it run on a system which is already in use and has changed several system settings already. Now, will nix/nix-darwin reset all those changed settings to their defaults used in nix-darwin or will it just set the single setting I added to my flake.nix (the dock.autohide) and leave everything else as it is right now? | 12:59:31 | |
| Try asking these sorts of questions of Gemini β the LLMs are pretty solid in nix usage and will give you good answers a large percentage of the time. tl;dr: it will not reset other settings. | 13:03:24 | |
| That is absolutely not a recommendation I would make tbh | 13:03:43 | |
| Especially when there's risk of data loss | 13:03:49 | |
| have you had a bad experience? | 13:04:09 | |
| I've seen plenty | 13:04:30 | |
| Thanks, I do β with mixed results. But I'm not trusting the replies; you get different things when asking in different ways... "Is it correct that xyz?" will always give you a "yes" answer :-) | 13:05:06 | |
| I am set up with a fairly minimal base system for nix-darwin and nixos, then a home manager setup for tools that are truly common across my projects, then flakes for each project with the specific tools for that project, and find that using LLMs to write the nix configurations and manage the various layers is dramatically faster and easier than writing them myself. Since it's all backed by git as well as nix's own ability to roll back configurations, I have never experienced the 'data loss' that k900 is referring to. I consider it one of the great strengths of the nix ecosystem in the age of AI β it is finally usable for anyone who cares to understand the high level, without needing to spend ages mucking around with the configurations yourself, while still being legible/understandable when you want to see what the configuration is (assuming you take the time to learn to read and write nix code) | 13:08:19 | |
fwiw, a chsh -S /path/to/shell will never be successful as long as /path/to/shell isn't in /etc/shells. But I guess you already knew that... | 13:08:43 | |
| Thanks for sharing your experience; I am still at the stage where I try to understand the high level architecture before really diving into using it. yes, I know, I'm slow but I'm one of those guys who invest time into understanding instead of just playing around and copy & pasting commands :-) | 13:13:18 | |
| Oh, to be clear, it's not that I think you shouldn't understand nix. but since all the resources are out of date and all the advice out there is wrong, usign the LLMs to help you figure it out and understand it will be an accelerant. It's still worth slogging through the ancient nix pills series and reading all you can about flakes, but there is no good on ramp available to make it so that your first configurations come out right to begin with. | 13:15:01 | |