logoalt Hacker News

kesortoday at 1:04 PM5 repliesview on HN

Instead of re-inventing Linux distributions for FlipperOS on top of Debian. They should just choose to base it on NixOS which already has these "profiles" as a built-in feature called "Specializations" https://wiki.nixos.org/wiki/Specialisation


Replies

projektfutoday at 1:31 PM

I have a couple NixOS machines but I never put "just" and "NixOS" in the same sentence.

everforwardtoday at 2:17 PM

I strongly disagree here. On the technical side, I'm sure it works, I almost never hear about Nix not working.

On the practical side, "learn Nix" is a _massive_ onboarding task. Without Nix, I'd probably pick one up assuming I'll find something to do with it. With Nix, I'd wait until I have a project I know is worth figuring out Nix.

If this were my project, I'd probably go with the absolute most simple answer: multiple SD card readers. Install the base OS on one card, allow hot-swapping the other card, do some mount point stuff with the other card (like maybe it auto-mounts to /usr/local, and have packages install into /usr/local). Or maybe some kind of overlayfs with the other card. SD cards are cheap, and I'd rather glue an SD card holder to the back of a Flipper than learn Nix.

show 1 reply
__MatrixMan__today at 1:32 PM

I had the same thought. Their stated goals are very much in line with what nix is all about.

Sadly, I totally get why they didn't. The nix way still isn't ready for "hey everybody, I'm making a thing, let's work on it together."

The hurdles are just too high for non-nix-nerds to pick it up while simultaneously trying to learn the underlying project.

It's a better way, currently only for those primarily in search of a better way.

yjftsjthsd-htoday at 3:42 PM

I daily drive nixos and I have no idea what specializations are and reading that wiki article didn't help. Am I just looking at a way to drop in chunks of predefined config?

thrdtoday at 1:08 PM

They already tried it and got so much pain that they decided on an easier way.