rfcs
nixos-generators
Our great sponsors
rfcs | nixos-generators | |
---|---|---|
46 | 20 | |
476 | 1,439 | |
6.3% | 12.6% | |
5.0 | 8.3 | |
2 days ago | 3 days ago | |
Nix | ||
Creative Commons Attribution Share Alike 4.0 | 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.
rfcs
-
Build System Schism: The Curse of Meta Build Systems
Nix with dynamic derivations (RFC92) could potentially beat this curse.
https://github.com/NixOS/rfcs/blob/master/rfcs/0092-plan-dyn...
-
Show HN: Flox 1.0 – Open-source dev env as code with Nix
See: A plan to stabilize the new CLI and Flakes incrementally https://github.com/NixOS/rfcs/pull/136
- RSS can be used to distribute all sorts of information
-
I like gentoo's package deprecation process
NixOS recently introduced "problem" infrastructure to deal with such problems more gracefully and explicitly:
https://github.com/NixOS/rfcs/blob/master/rfcs/0127-issues-w...
-
NixOS and Flakes Book: An unofficial book for beginners (free)
For some more context: Flawed as they are, Flakes solve a large number of problems Nix experiences without them. This is why I, and presumably many others, use them even in their current experimental state.
An RFC was recently accepted to commit to forming a plan towards stabilization of Flakes: https://github.com/NixOS/rfcs/pull/136
Personally, I don't believe there won't be any breaking changes, but I also believe that the stabilization of Flakes is still a ways away and hope that there will be a reasonable migration path.
- NixOS RFC 136 accepted: A plan to stabilize the new CLI and Flakes incrementally
-
Super Colliding Nix Stores: Nix Flakes for Millions of Developers
> Afterwards, Flakes itself and its CLI components can be stabilized. The final design of Flakes will also require another RFC.
That seems like Flakes are still quite a ways away.
[1] - https://github.com/NixOS/rfcs/pull/136
First, the non-Flakes CLI wll be stabilized, in phases.
-
Lanzaboote vs. bootspec-secureboot
Both require the Bootspec patches, only support systemd-boot, have recent activity, and include a Rust-based tool for signing images.
-
Using NixOS as a Hypervisor for a k3s Cluster in Homelab, can I define the VMs in Nix config?
I just found an RFC for similar that was unfortunately closed back in the day: https://github.com/NixOS/rfcs/pull/12
-
Nix journey part 1: My grand unified theory of Nix documentation · Tinkering
If you'd like to understand, reading through https://github.com/NixOS/rfcs/pull/49 is probably a good place to start.
nixos-generators
- NixOS-generators – Collection of VM and Container disk image builders for NixOS
- NixOS: Declarative Builds and Deployments
-
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).
-
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.
-
Has anyone here spent a fair amount of time using NixOS/Guix and Fedora CoreOS/OpenSuse MicroOS for server deployment?
(2) There are a number of "generators" that can build disk images or installers. Some of them live in the nixpkgs repo along with NixOS, and others live in the nixos-generators repo. This is how I handle partitioning automatically. A related approach is to include first-boot scripts in those images. For example, the SD image resizes its main partition on first boot.
-
NixOS 21.05 Released
If you want to build custom images just use https://github.com/nix-community/nixos-generators
What are some alternatives?
poetry2nix - Convert poetry projects to nix automagically [maintainer=@adisbladis]
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
nix-ros-overlay - ROS overlay for the Nix package manager
nix - Nix, the purely functional package manager
nix-gaming - Gaming on Nix
nixops - NixOps is a tool for deploying to NixOS machines in a network or cloud.
digga - A flake utility library to craft shell-, home-, and hosts- environments.
nixos-shell - Spawns lightweight nixos vms in a shell
NUR - Nix User Repository: User contributed nix packages [maintainer=@Mic92]
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
emacs-overlay - Bleeding edge emacs overlay [maintainer=@adisbladis]
not-os - An operating system generator, based on NixOS, that, given a config, outputs a small (47 MB), read-only squashfs for a runit-based operating system, with support for iPXE and signed boot.