this post was submitted on 28 Jan 2025
13 points (100.0% liked)
Nix / NixOS
1911 readers
7 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't really like
flake-parts
orflakelight
. I think that part of this is sheer brutalism (I don't mind writing bare Nix) but part of it is a desire to not rely on flakes which don't carry their own weight, following Wirth's principle for compilers.That said,
github:numtide/flake-utils
does carry its own weight by managing multiplesystem
values, especially in flakes that support moresystem
s than upstream nixpkgs, and I've found myself using it in nearly everything;flake-utils
makes it fairly easy to have leaf packages that are e.g. supported on both amd64 and aarch64. I knowflake-parts
does this too, but not in a way I enjoyed.I just noticed that you said "my configuration." A machine, perhaps? My NixOS configuration is split into over a dozen NixOS modules and each machine has a list of included module files. I'm not using any flake-management tools for that flake; each machine has a hardcoded
system
and (like sibling comment from @[email protected]) they're all crammed into one bigflake.nix
so that the machine hostnames line up correctly when using the flake in argv:Seems facetious at first, but it facilitates automatic updates via flakes, just like with classic channels.
Hey thanks, this is the sort of perspective I was looking for. As far as you've revealed, I'm pretty sure we have nearly the same setup.
I wanted to see if flake-parts would be any enhancement, but it seems not since I'm also managing servers with along with my personal huge flake. I'm working on moving git-crypt out of my config so I can rebuild it straight from git, but I can't find a way to declare my email in secrets (sops-nix you're good at everything but...not trivial secrets)