nixos-infect
nixos-apple-silicon
nixos-infect | nixos-apple-silicon | |
---|---|---|
20 | 16 | |
1,165 | 681 | |
- | - | |
7.1 | 9.0 | |
about 2 months ago | 7 days ago | |
Shell | Nix | |
GNU General Public License v3.0 only | 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.
nixos-infect
-
Ask HN: Please recommend how to manage personal serverss
There is one solution I've seen being used to solve this issue.
It is to overwrite the current Linux OS with the one you want. I came across this idea here [0]. I researched and got Alpine Linux running on Hetzner (even they don't support custom images) using a similar method [1].
This seems to be the guide to do the same with Arch Linux [2], I'm not sure though.
Once you do create a successful Arch image on OVH, take a snapshot of the machine before installing anything else, in case you want to start from a fresh Arch image in the future.
[0] https://github.com/elitak/nixos-infect
[1] https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux...
[2] https://wiki.archlinux.org/title/Install_Arch_Linux_from_exi...
-
NixOS Friendly (Dedicated Server, VPS, Cloud, Container, VM, etc.) Hosters
Related:
https://www.reddit.com/r/NixOS/comments/u5gi6e/whats_a_good_...
https://github.com/elitak/nixos-infect
-
NixOS stability for everyday use and development
In my experience, the initial learning curve is "way steep" due to incomplete learning resources, the community being split on flakes (I'm not jumping on them yet because I'm sticking with the stable branch), and this one documentation gap in particular.
-
Tech Independence
FWIW, I recently found a VPS offering for $1.41/month (!) @ 1.5GB RAM & 30GB HDD via https://lowendbox.com/, at https://my.racknerd.com/index.php?rp=/store/black-friday-202... (please note I have no idea how reliable it is though!). I managed to deploy NixOS there through nixos-infect (https://github.com/elitak/nixos-infect), and then further configure it with NixOps. That said, using NixOps does currently require a Linux (or Mac, probably) box as the managing one, and some Nix-fu, which is definitely non-trivial. A draft (WIP) writeup on that, if you're interested: https://github.com/akavel/scribbles/blob/main/_drafts/202308...
-
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).
-
Free Tier using custom images
for NixOS
- Is it possible to morph Debian into NixOS?
-
NixOS 23.05
Now that you both mention it though, I probably could've skipped the "Boot into the installer" step. I know nixos-infect can install in-place. I havent checked how they do it, but a lighter version that just adds nixos should be pretty easy using ZFS. It probably would've been possible for me to do replace the installer steps with something along the lines of:
-
What is the difference between NixOS and any other distro running the nix package manager?
You can execute nixos-rebuild on other distros but the NixOS modules and activation scripts expect it to run on NixOS system so it probably will not work (e.g. NixOS would want to control systemd, which would conflict with the distro). And if it did, you would no longer have the other distro but NixOS (see also nixos-infect).
- Is anyone here using nix with modern hardware? r
nixos-apple-silicon
-
Hackintosh Is Almost Dead
I just used this: https://github.com/tpwrules/nixos-apple-silicon/blob/main/do...
I used one of their releases rather than building my own image. It’s a guide that merits careful reading, as some key steps are not specifically bulleted. Oh, and it’s not the NixOS graphical installer.
But it was dead simple, and 99% of the heavy lifting is from the Asahi team. The biggest downside is that updating the support files is a manual process, but NixOS of course makes it a breeze to rebuild into a new environment—and back out if it doesn’t work.
-
Asahi Linux folks are doing us a solid with WPA3 fixes
I doubt it will ever have native support. NixOS doesn't do native support. For what it's worth I'm running NixOS on an M2 Max MPB using https://github.com/tpwrules/nixos-apple-silicon.
- NixOS bare metal on Apple Silicon
- Lima: A nice way to run Linux VMs on Mac
- Resources to install NixOS bare metal on Apple Silicon Macs
-
Nix-Powered Development with OCaml
Most hardcore Nix users/developers I have met have been suspicious for Flakes for several years, so your point rings true.
That said, it feels like they are slowly coming to terms with it and just accepting it as default. Here are two examples of maintainers eventually accepting flake support on their repos after initial hesitation [1][2].
[1] https://github.com/tpwrules/nixos-apple-silicon/pull/47
-
ARM64 Linux Workstation
I do, no issues at all with the beta Asahi kernel, you basically have to git clone https://github.com/tpwrules/nixos-apple-silicon in /etc/nixos/, include a file from that repo in the configuration.nix and configure as you like (beta gpu driver or not, which kernel, 4k pages or not, ecc). The experience then is exactly the same as a stock NixOS installation.
-
chroot to existing Asahi installation
there is a NixOS iso for m1 you can use it https://github.com/tpwrules/nixos-apple-silicon
- NixOS on M1
What are some alternatives?
harbormaster
docs - Hardware and software docs / wiki
tarsnap - Command-line client code for Tarsnap.
m1n1 - A bootloader and experimentation playground for Apple Silicon
nixos-digitalocean - A minimal NixOS image builder for DigitalOcean.
SwayM1 - A Guide on how to install and configure sway for M1 MackBooks.
rocky-tools
powertop - The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests
nixos-anywhere - install nixos everywhere via ssh [maintainer=@numtide]
linux - Linux kernel source tree
progress - Linux tool to show progress for cp, mv, dd, ... (formerly known as cv)
ocaml-flake-example - An overly elaborate example of building a ‘Hello World’ package with Nix flakes, OCaml, and Dune