#NixOS out-of-tree #kernel module for #Apple #CirrusLogic #CS8409 #codec + #TAS5764L amp. The mainline #driver only supports Dell. The file below packages davidjo/snd_hda_macbookpro as a #Nix #derivation. Now the #sound on my old #imac running #linux #nixos seem to work. It did not work before. Tested on #iMac2017 27" (iMac18,x), kernel 6.17, #RadeonRX580. https://codeberg.org/adingbatponder/reticulum_nixos_flake/src/branch/main/packages/snd-hda-codec-cs8409-apple/default.nix Disclaimer: the solution was taken from the references cited in the default.nix file & implemented using #ClaudeCode.
#Music for today << https://www.youtube.com/watch?v=P9dpTTpjymE >> Do you even like calculus if you don't like music? #derivation #differentiation #calculus #nomxd #Music🐾
Problem was flakeRoot = "${inputs.self}" in #rust #derivation in flake caused the rust code to swallow whole flake anew for any flake file change, even changes completely unrelated to the rust code, meaning a whole rebuild. Changed that to a find_flake_dir() function that discovers flake directory by walking up if FLAKE_DIR environment variable is not set.
Took time down from always 22 mins, to 2 mins 20 sec for a minor nix fix rebuild. Ta #Claudeai #buildtime #buildtimes #nix #nixos
#flake
In a #nixos #build and #switch of a #flake, my entire #rust #derivation ( which is just a program in the flake ) gets built meaning that it takes eons: even if the change to the flake that made the build necessary was a trivial change to a thing that has no interaction with the rust derivation. What am I doing wrong? Thanks for any pointers... #flakes #buildtime #buildtimes
🎩✨ "Nix #Derivation Madness": Farid dives deep into the labyrinth of #Nix, only to find himself confounded yet again by its whimsically impenetrable logic. 🤯🔍 Spoiler: He discovers the #Ruby #interpreter is neither buildable nor runnable, as if the code itself is taunting him with a mischievous "you're not worthy" laugh. 😂🔄
https://fzakaria.com/2025/10/29/nix-derivation-madness #Madness #Nix #Coding #Challenges #Tech #Humor #HackerNews #ngated
Nix derivation madness

I’ve written a bit about Nix and I still face moments where foundational aspects of the package system confounds and surprises me.

Farid Zakaria’s Blog
Nix derivation madness

I’ve written a bit about Nix and I still face moments where foundational aspects of the package system confounds and surprises me.

Farid Zakaria’s Blog
#reticulum #rns in #nixos
A beta #flake that installs (amongst other things) #meshchat #reticulummeshchat and #nomadnet
https://codeberg.org/adingbatponder/reticulum_nixos_flake
#derivation #nixospackages
The flake was hammered out using chatGPT iteratively from a non-AI base flake. #reticulumnetworkstack #reticulumnetwork
See my take on the context and Why NixOS here: https://www.loramesh.org/#nixos

A #nixos #flake that builds a #derivation that #package & install #nomadnet 0.1.0 & #meshchat 1.1.0 from #github python source code. For #reticulum #network. This is a beta work in progress, done using chatGPT iteratively, and is my first attempt at packaging something for nixos. Time will tell if this holds up. Uses python #setuptools & #buildPythonPackage
#lxmf ver 0.8.0
#rns ver 1.0.0 https://codeberg.org/adingbatponder/reticulum_nixos_flake

#nixospackages This is experimental and beta - see readme file for issues

If using #postPatch , in a #nixOS #flake , to tweak the python code, from a #repository, that is used in the #build performed by a #derivation to #package code, the role of #spaces and #indents in #python make the process total and utter agony. #packaging #nixospackages
Derivation and Intuition behind Poisson distribution | Notion

Cutting out all the bs, let's jump on deriving the Poisson distribution in an intuitive way using a simple example, applying the concepts of Bernoulli's distribution, the Binomial theorem, L'Hôpital's rule and Taylor Series. A classic way to approach this is by considering the probability of observing a certain number of rare events occurring in a fixed interval of time or space, with these events occurring independently and at a constant average rate.

antaripasaha on Notion