Recently got started with Nix and Home-Manager. I thought Advent Of Code would be a good way to get more comfortable with the Nix language.
I don’t think I ever made it beyond Day 6 though, even in my most comfortable language (Python) so no idea where this will strand.
I am learning a lot about Nix though!
Have you used the Nix language outside of configuration? Let’s share and discuss!
@F04118F
If I can make the time, I will. But I know @ellyse is doing it. 🎅 👩💻
She did one last night live on stream.
https://ohai.social/@ellyse/113482901348671949
@gavin @F04118F yup! thats a link to a 2019 AoC, but here’s my video for day 1 this year https://www.youtube.com/live/P/_3rUzAN0vw
the code is here: https://github.com/ellyxir/advent/_of/_code/tree/main/2024/nix/day01
i looked at your solution, good work!
That looks very lispy, is that intentional?
Yes, Nix is a pure functional programming language, like Lisp.
The reason for its existence is to allow for reproducible and repeatable builds of packages and configuration. This is the basis for nixpkgs, NixOS and Home Manager.
Oh, I know; I have commit access to Nixpkgs ;)
I was just commenting on the way they’ve styled their Nix code here.