nix-darwin
nixos-generators
nix-darwin | nixos-generators | |
---|---|---|
39 | 20 | |
2,302 | 1,545 | |
- | 6.9% | |
8.7 | 8.3 | |
4 days ago | 9 days ago | |
Nix | 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.
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.
nixos-generators
- NixOS-generators – Collection of VM and Container disk image builders for NixOS
-
NixOS: Declarative Builds and Deployments
https://github.com/nix-community/nixos-generators
-
NixOS RFC 136 accepted: A plan to stabilize the new CLI and Flakes incrementally
Those Linode instructions are about installing an OS from an installation ISO from Linode's rescue mode. -- I'd consider that more a 'plus' to Linode that you get to be able to install whatever unsupported Linux on Linode's VMs. But, of course it's not as smooth as the officially supported images.
Sibling comment mentions that NixOS provides ways to build VM images (e.g. https://github.com/nix-community/nixos-generators has a generator specifically for Linode).
Another option is to use nixos-infect, which will replace a Linux distribution with a NixOS distribution. https://github.com/elitak/nixos-infect
> At that point, I feel like all of the repeatability gains are gone. If I want to spin up a fresh server, I have to read a guide and set stuff up by hand?
Just as with ansible, "git pull to deploy". You'd keep a copy of your NixOS configuration.nix somewhere else, and would be able to apply it later.
> it really does let me just get a new VPS and deploy to it very fast
Using a tool you're familiar with to get the job done is going to be faster than learning to use a tool you're unfamiliar with.
I believe much of the use of NixOS is for hobby stuff, and for personal machines. (c.f. "In what environments do you use Nix", Development (1242) vs Home Server (845) vs Production (386) https://discourse.nixos.org/t/2022-nix-survey-results/18983).
- Questions about Nix
-
Couple of noob questions
If you need to generate lxc container in NixOS then perhaps this repo might be useful: https://github.com/nix-community/nixos-generators this article uses it https://www.thedroneely.com/posts/running-nixos-linux-containers/
-
disko-images - Create qcow2 images from NixOS + disko configuration
You might wanna check out nix-community/nixos-generators, it’s maintained by the same dude as Disko
-
How to do machine specific config on EC2 using an official nixos ami?
You can look at nixos-generators for support code that well let you take existing configs and build a variety of bootable images from them.
-
Flake to make NixOS iso
You should take a look at NixOS Generators, it's a flake with configs to build common formats like ISO, LXC, Docker, etc. I use that to generate an ISO with my config, specifically the packages.iso section.
-
Need help with NixOs VM Generation
I am trying to make use of https://github.com/nix-community/nixos-generators to generate qcow2 images from a NixOs configuration. Since it will be used with Scaleway, they require an efi bootable image.
-
[NixOS] How to Migrate From one Server to another? KVM to VMware
I haven't migrated machines from one vm provider to vmware, but I have provided a number of pregenerated nixos images (along the line of https://github.com/nix-community/nixos-generators) to clients to install onto vmware (and other - hyperv, xen, qemu, physical) hosts.
What are some alternatives?
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
poetry2nix - Convert poetry projects to nix automagically [maintainer=@adisbladis]
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
nix - Nix, the purely functional package manager
nixos-shell - Spawns lightweight nixos vms in a shell
nix-gaming - Gaming on Nix
digga - A flake utility library to craft shell-, home-, and hosts- environments.
nixops - NixOps is a tool for deploying to NixOS machines in a network or cloud.
NUR - Nix User Repository: User contributed nix packages [maintainer=@Mic92]