Bryan

@bryanhonof
108 Followers
110 Following
211 Posts
🧑‍💻Software Engineer at @flox 🎸Playing guitar for Previse
🧑‍🏫Lecturer at PXL
🤔Interested in #lisp, #NixOS, #DevOps
homepagehttps://flox.dev
Matrix@bjth:matrix.org
Name pronunciation/ˈbɹaɪən/
Pronounshe/him/his

nixfmt v1.0.0 released! 🥳

This is the first stable release of the official Nix formatter. It implements RFC 166, which defines a standard for Nix formatting.

Great work by the Nix Formatting Team, thanks to everyone involved!

https://github.com/NixOS/nixfmt/releases/tag/v1.0.0

#nix #nixfmt #nixos #nixpkgs

Release v1.0.0 · NixOS/nixfmt

The Nix Formatting Team is happy to present the first stable release of the official Nix formatter! The basis for this milestone is RFC 166, which defined the standard for Nix formatting, establish...

GitHub
The OS becomes too bloated, and you need to reinstall? Listen, listen, what if we do reinstall on every package install, then no bloat can survive - #NixOS
@alberand what if we also do it everyone I want to change my background? 🤔

When you start your VM build and walk away for lunch...

and come back to 30 packages left ... of 1350, including the kernel, qemu,...

#justNixOSThings #nixpkgs #nixos

@musicmatze did that once, came back to an internal compiler segfault. That was a fun day. 😅

We need more metal logos in IT! 🤘

#NixOS #gitops

Now that I have #uboot, #systemdboot and #nixos running on my phone, no one will be able to stop me, mwuahahah

#weeknotes
make-bootstrap-tools-cross: add loongarch64-unknown-linux-gnu by Aleksanaa · Pull Request #399167 · NixOS/nixpkgs

GitHub

Nice, lib.packagesFromDirectoryRecursive now supports nested scopes!

packagesFromDirectoryRecursive transforms a directory tree of packages into a nested attribute set of derivations. You can use it to manage a package set in a similar way to by-name in nixpkgs (without the sharding part). The package files in tree must be suitable for callPackage.

Subdirectories in the tree result in nested attribute sets. In the following example, packages d, e and f will be in a nested attribute set called my-namespace.

my-packages
├── a.nix
├── b.nix
├── c
│ ├── my-extra-feature.patch
│ ├── package.nix
│ └── support-definitions.nix
└── my-namespace
├── d.nix
├── e.nix
└── f
└── package.nix

Previously, this would only use one scope (my-packages), so e could only depend on d as my-packages.d. With the introduction of nested scopes, e can refer to d within the same scope directly.

PR: https://github.com/NixOS/nixpkgs/pull/392800

function doc on noogle (which isn't yet updated for the new behavior): https://noogle.dev/f/lib/packagesFromDirectoryRecursive

#Nix #NixOS #nixpkgs

lib.packagesFromDirectoryRecursive: use explicit recursion, support nested scopes by katexochen · Pull Request #392800 · NixOS/nixpkgs

Supersedes #359984, as the author isn't responding. I squashed in the fixup commits (had to split them up as they wouldn't apply) and resolved merge conflicts with master. Original PR descr...

GitHub
Using Nix to build pretty small images | SCALE 22x