comma
nix-darwin
Our great sponsors
comma | nix-darwin | |
---|---|---|
10 | 39 | |
958 | 2,249 | |
7.2% | - | |
7.0 | 8.7 | |
10 days ago | 2 days ago | |
Rust | Nix | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
comma
-
Is Using nix-env an Antipattern?
Nowadays, I tend to try things out with comma, then add them to my configuration for later use. Some tools are not even installed in my systems because I use them so infrequently - opening a terminal and running , freecad is basically as easy as actually having it installed.
-
hook nix-shell on zsh command not found
There's a version of this approach that uses nix-index to figure out which package a command is in called comma: https://github.com/nix-community/comma
-
Nix journey part 0: Learning and reference materials
Relatedly, check out comma. It's basically a shortcut prefix command that will search packages for the binary you want to run (via nix-index), and gives you an interactive choice if there are multiple. Which package was drill in again? No matter, I'll just prefix a comma :)
https://github.com/nix-community/comma
-
Alternative to the "dnf provides"
this + if you want to run a command automatically I suggest comma
-
Why does nix/nixos even allow the "temporary" install of things?
Yeah dude. Emphemeral installs are a feature, not a bug. Similar vein is , https://github.com/nix-community/comma
-
Auto `nix-shell -p package` on missing package
You're looking for https://github.com/nix-community/comma
- Keep packages installed without "polluting the environment"
-
Reddit, Twitter, Shopify scramble to deploy 'instant buy' 2021 MacBook Pro
One of the nicest tools is comma. https://github.com/Shopify/comma. It's just a light weight wrapper around searching nix-pkgs and running something, but it sure makes a lot of things easier when you're sharing somebody else's laptop.
-
Having trouble getting started adding packages to my user
If you want to test out some program, I would STRONGLY recommend using nix-shell -p . This will create temporary environment, that will allow you to test out the package. You can also check out comma.
-
JOIN NIXOS TODAY OR BECOME INSIGNIFICANT TOMORROW!
I love using Shopifys comma tool https://github.com/Shopify/comma cause it's so useful for just small programs that u need to run once and then forget about them
nix-darwin
- Nix-Darwin: Nix modules for Darwin
-
My MacBook setup (the 2024 version)
Just a shout out to nix-darwin[1]. It is nix, so initial setup is a bit involved. But then it truly makes it easy to configure everything in one place including mac defaults, homebrew apps declaratively and mas apps etc.
There is a sample config in nix-darwin repo[2].
[1] https://github.com/LnL7/nix-darwin
[2] https://github.com/LnL7/nix-darwin/blob/master/modules/examp...
-
macOS Sonoma Broke Grep
https://github.com/LnL7/nix-darwin/tree/master/modules
-
What is the difference between NixOS and any other distro running the nix package manager?
nix-darwin does similar thing for MacOS
-
How to install a library globally using nix-env (or home manager) on macos?
You can use https://github.com/LnL7/nix-darwin
- Nix-Darwin
-
Issues with installing applications on Macos
There are many threads around where you can learn more about this (and why it's complicated...), but https://github.com/nix-community/home-manager/issues/1341 and https://github.com/LnL7/nix-darwin/issues/139 seem like two of the most comprehensive.
-
Zero to Nix, an unofficial, opinionated, gentle introduction to Nix
Nix is pretty usable for both desktops and headless servers. Personally, I even use it on macOS without much trouble.
My system looks like any other install of Ventura, but all of my configuration, ranging from the terminal and VS Code to macOS-specific system preferences and Safari, is done declaratively in Nix [1]. The overwhelming majority of my installed software also comes from Nix packages, with some exceptions for stuff that is not packaged yet (e.g., I have Podman Desktop, the macOS ZFS port, Lulu, yubikey-manager-qt installed through Homebrew -- fortunately nix-darwin [2] also just lets me have an set of brews/casks in my config).
It was been a bit of a nightmare at first since the error messages are kind of horrific, and there can be a lack of good examples/docs on flakes. But I think the weekend worth of time I invested was worth it since I no longer need to rely on hacky shellscripts or remember to manually configure anything.
[1]: <https://github.com/nix-community/home-manager>
[2]: <https://github.com/LnL7/nix-darwin>
-
Beginner Question: Managing the global environment using Nix
Take a look at nix-darwin, this is what I use. It allows you to configure your system similar to NixOS including globally installed programs.
-
How to install Chrome on MacOS without homebrew?
This — I still use mas and brew —-cask through the nix-darwin module, though. It’s not exactly reproducible, but it’s at least closer to reproducible and declarative.
What are some alternatives?
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
nix-index - Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius]
nix - Nix, the purely functional package manager
machine-configuration - Configuration files for my NixOS installs
nixos-shell - Spawns lightweight nixos vms in a shell
NUR - Nix User Repository: User contributed nix packages [maintainer=@Mic92]
digga - A flake utility library to craft shell-, home-, and hosts- environments.
issue-tracker - Fedora Silverblue issue tracker