#nix
Pierwszy dzień czytania dokumentacji #Nix'a. Chyba zostanę fanbojem.
https://www.ngi.eu/funded_solution/p4-nix/
Uh wow, they wan't to define the state of a fpga with #nix 🤯
https://fosdem.org/2023/schedule/event/nix_and_nixos_p4_in_nix/
♲ fosstodon.org/@dantleech/11044…
Uh...does anyone have tips on getting the System76 specific bits installed on NixOS properly? I can see linux.packages.linux_zen.system76 exists as a metapackage= and that's where kernels live, but the linuxKernel.packages.linux_zen.system76 mentions it is only the DKMS driver and there are a ton of other packages there that don't seem to be the kernel either? #Nix #NixOS #system76
There's a Nix meetup happening today in Zürich, Switzerland, celebrating Nix's 20th anniversary! 🇨🇭
https://20th.nixos.org/
https://www.meetup.com/nixos-user-group-zurich/
#nix #nixos #anniversary #meetup #Zurïch
Haumea v0.2.2 has been released with a new matcher interface for loading non-Nix files!
Changelog: https://nix-community.github.io/haumea/notes/changelog.html
Diff: https://github.com/nix-community/haumea/compare/v0.2.1...v0.2.2
I commited a new package to #nix packages but it seems to be broken.
What a day.
But it is my first step to contribute to the open source ecosystem. I'm so proud of it.
As I made a mess of it, I should fix it.
Super Colliding #Nix Stores: Nix Flakes for Millions of Developers - https://blog.replit.com/super-colliding-nix-stores #dailylinks
I'm curious if anyone has transitioned (or tried to) from Conda to Nix in coding environment setup in bioinformatics, modelling, or data analysis in general.
What would be the pros/cons?
I don't really know Nix but would like to know more.
#Nix management for Wordpress, NextCloud and more. Handy!
On my voyage for more #idempotent systems, deploy-rs is really resonating with me right now. 😁 It's a #nix #flakes profile deployment system.
Fancy for, you write a declarative config and it gets what you need correctly. 😅 It's really making me rethink of my #ansible usage. At least for provisioning.
For troubleshooting though, you'll need to pry ansible from my dead hands to get rid of the love. 😁
Introducing Pins: Permanent Nix Binary Storage https://blog.cachix.org/posts/2023-05-23-introducing-pins-permanent-nix-binary-storage/ | https://lobste.rs/s/ej0lra #nix
Clearly I'm in the "spooky shit" territory of #nix given how often I see it die on me.

ran into this when trying to look for quirks in the Nix language
hmmm thinking emoji
Has nested destructuring of lambda parameters ever been proposed in #Nix?
Found out about #nickel, when looking for alts to config management again. 😅
It has some similarities with #cue. But focuses more on the resulting generation. Nickel has validity of data like cue. Though not necessarily the focus. Whereas cue is all about validity of what you input to the config. Not just the config.
Still, nickel takes a lot of its design principals from #nix as well. 😎 Meaning it warrants researching some more. 😄
How I used Nix to turn Open Policy Agent policies into standalone CLI tools https://determinate.systems/posts/open-policy-agent | https://lobste.rs/s/e7mrcf #nix
Just got #CrystalLang on aarch64-linux all packaged up for #nix
Feel free to use it `nix shell github:crunchydata/nixpkgs#crystal`, but it's not a priority for me to maintain it outside of what I just need for myself.
I was hoping to get it more automatic with cross compiling, but gave up and just uploaded a hand cross built crystal.o and use that to bootstrap everything else. I imagine that this probably can keep building new versions for a while.




What is the most reasonable #nix module way to achieve the following:
1. The attrset in 15..22 is generic (i.e. it should be the same for all clusters).
2. It allows for local cluster overrides (e.g. in 17 I need a cluster-specific externalIP)
3. It allows for cluster-specific generics (e.g. in 21 I want enabled = true IFF cluster.${clustername}.hasMetrics == true for every clustername out there)

microvm.nix is a #Flake to run lightweight #NixOS virtual machines on #NixOS. Starting with the reasons why for the remainder of this chapter, this handbook guides you through the provisioning of #MicroVM-s on your #NixOS machine.
https://astro.github.io/microvm.nix/intro.html@zarel I author my #argocd configurations in #nix (using helm as a flake dependency via https://github.com/farcaller/nixhelm and random docker images via https://github.com/farcaller/nixdockertag). Argocd effectively evaluates the flake output and applies it.
I drafted a blog post on this, but never published it. I really should.
My current issue with #nix, #nixOS and #HomeManager: I think I see their point how they solve some issues I'm facing. I may want to be there but I don't want to invest the energy to actually go there.
Furthermore, there seems to be a chaotic-looking heap of concepts that are hard to initially understand and keep them apart.
If I'd be in my twenties, I may have started with that ecosystem, embracing its style and concepts. 😔
Anyone happen to have a #Nix flake on hand that does cross compilation of Rust from x86 to ARM? Trying to get this building for a Rust based AWS Lambda in a nice way 👀
Have something that might work but need to compile all of clang first apparently.
nurl v0.3.12 has been released!
Nurl is a tool to generate Nix fetcher calls from repository URLs. It's like `nix-prefetch-url` but for everything from GitHub repositories to Rust crates
Diff: https://github.com/nix-community/nurl/compare/v0.3.11...v0.3.12
Changelog: https://github.com/nix-community/nurl/blob/v0.3.12/CHANGELOG.md
I am very tempted to move my workstation from arch to Debian + nix. I am just not sure it's worth the time. Especially when #Debian testing goes stable. Think that would provide a very stable os, and then all developer tooling could be handled nicely by #nix.
Not pure #NixOS since i fear that's an even greater timesink.
Cóż za fenomenalna prezentacja! Aż chciałoby się spędzić pół nocy przed komputerem poznając #Nix i #NixOS.
https://youtu.be/NTS6GMJLN30
what was that #nix tool that rewrote shell scripts by replacing the paths to the binaries called with the absolute paths to nix store?
@clementd Ha mais tout à fait. Il y a des choses qui ne méritent pas la complexité de la méthode #stow.
Le must serait de pouvoir dire à #home-manager de prendre la config directement d'un dépôt mais je n'ai pas encore le niveau en #nix pour ça.
Ce doit être "facile" en mettant un #flake.nix à la racine du dépôt d'ailleurs, en permettant de faire du #stow et de #homeManager .
À creuser tiens.
@shuLhan I have heard good things about this being a good place to start these days: https://zero-to-nix.com by the awesome @grahamc and team. #Nix #NixOS
I have been trying to start exploring #nix, unfortunately their documentation are scatered on nixos.org, nix.dev. nixos.wiki. It's hard to even find what is "shellHook", "mkDerivation" and where it comes from.
I've been reading all days, and still cannot even put any order where to start except installing a package.
As it turns out, today was apparently backup day.
Spent the rest of my desktop time packaging the excellent https://github.com/geeksville/steamback and got 99% there (needs some cleanup, but is fully functional for anyone eager):
❄️ NixOS for the Impatient
— borretti.me
#Nix #NixOS #Linux https://borretti.me/article/nixos-for-the-impatient


I just released a quick update to npt: it can now display the executed nix commands: `npt -t install <package>`
Check it out:
https://github.com/woile/npt
Passend zum Wochenende noch ein neues Rabbit Hole gefällig? 🤓
Der werte @hexa und @fleaz geben euch in unserer neuen #podcast Folge einen umfassenden Einstieg in die #nix #nixos Welt.
Achtung, es wird tief (inhaltlich und witze-technisch!): https://focusonlinux.podigee.io/54-die-fabelhafte-welt-von-nix
@JesseSkinner one way to insulate the differences and wrap/abstract what you need, is to create a nix-env that runs your app/s using a shell.nix to build and define/codify your buildtime & runtime deps, in your current comfortable OS, then switch to the new OS (in this case BSD), then replicate/run the same nix-env to build then boot up your app in the new OS. Kind of like docker, but lighter and robust/reproducible - see #nix
@dpwiz @haskman as I said, this is stackage. (See haskman's argument about curation). If you squat, you get kicked.
But yeah, #haskell needed #stackage because of #cabalHell, whereas #purescript has both #nix integration and #dhall / #spago combo wombo, which is a less known "nix for language ecosystems".
But if this website (which I didn't understand beyond "I am certain I don't need this") provides `go get`-like experience, then it will be very good for beginners.
The experiment is over. I've never had the problems that #Nix purports to solve and the problems I have it can't help with.
It feels like the project is an attempt to foist two generally unpopular software concepts on people:
- a functional programming language
- a Linux distribution
That's a bundle of items that's very far from the mainstream of software engineering.
Thoughts on #Nix flakes exporting `__functor`?
Hello, Mastodon!
I'm figsoda. I work on Nixpkgs, nix-init, fenix, and a few other Nix and Rust projects
Check out some of my projects here: https://github.com/figsoda
Reading development proceedings from the #Nix project and seeing the founder shoot down most suggestions for clarifying and simplifying things, it's clear that the problems are baked in at the governance level and are unlikely to be fixed.
✨ “Making a dev shell with nix flakes” is now available for everyone!
https://fasterthanli.me/series/building-a-rust-service-with-nix/part-10 #nix
This Month in #Nix Docs - April 2023: https://discourse.nixos.org/t/this-month-in-nix-docs-2-april-2023/27899
Frictionless developer environments https://blog.testdouble.com/posts/2023-05-02-frictionless-developer-environments/ | https://lobste.rs/s/h2v7cy #devops #nix
I'm making an effort to learn #Nix. It's a good idea but judging from what I'm seeing and the strong path dependance, I'm not sure if the issues are fixable within the project.
It would be best for somebody to do a clean and humane re-implementation on top of the Nix store concept.
@hazelweakly @fasterthanlime Well when using #nix I do feel like peering in the hidden foundations of computer science, shaping entire universes from few commands while being completely immune to mere mortals base concerns like global state, versions or compatibilities
@olivierlacan @samsaffron fwiw I used auto jump for a long time and switched to a Z implementation (not zoxide though) because there were examples I could copy and paste to get it to auto set all the shell hooks when I was migrating to #nix home-manager: https://gist.github.com/will/357b7e43da67cda76c6d09fbd2d82355#file-home-nix-L168
I have it set to use ‘j’ as a key though for muscle memory
@YurkshireLad if you've got the time and inclination to learn how to use the #Nix ecosystem, you could try #NixOS with #xfce. It's one of those things that you learn once and rarely go back to not doing it because the benefits are too great, like potty training or touch typing.
I'm getting into #Nix and now installed it on my personal machine as well (thanks new installer!), but the error messages are from another planet. I don't see what fundamental complexity there is in Nix to make it *this* difficult to understand.
No-root is in principle possible for #Nix and #Guix under #Linux, but not available today.
Cross-platform reproducibility is not possible, period. You can run #Nix under #macOS as well as under #Linux, but you get reproducibility only within each platform.
Moreover, reproducibility with #Nix under #macOS is limited because #Nix depends on code it cannot control (managed by Apple).
Funny enough, I can't install #homeManager in a clean #docker #nixos / #nix image.
So #Nix is when Haskell people make a package manager, a language, an OS and a build system all entangled with each other both physically and conceptually?
behold, the git logs of a highly optimal system in which nothing goes wrongly ever
good thing nix saves time and neovim makes you more efficient as a person amirite
The #Nix #documentation team is taking applications for an editorial lead and a Nix expert for our documentation project! These would be short-term paid positions to help us develop a curriculum for onboarding new Nix users. You would be working with me (which is delightful) and other members of the Nix team.
The post describing the positions and the application process is here: https://discourse.nixos.org/t/editorial-lead-or-nix-expert-documentation-project-2023-nixos-foundation/27471
I was able to get all checks (specs, linting, etc) to only ever run if they need to (e.g. not running specs if just the readme changes), get them all to run in parallel when they do need to, and never run the same check twice if it has ever been ran before for that same set of files. On both CI *and* locally.
All the while by removing nearly all of the CI yaml down to just setting up caching and a single step of "run the checks”.
#Nix people, what's your approach to debugging? 🐛
I often find I have to just make changes and try rebuilding to see if my fix is correct ❌. I know about the REPL but for something like a missing config option I'm not sure how to go about it.
Any articles or blog links appreciated 🙏🏼
The option `home' does not exist.
Re-watching @jakehamilton instructionals and poking around #Snowfall lib and I think I've managed to wrestle my stuff into a working snowfall setup! There are a LOT of abstractions in Jake's config repo but I think I get the gist of it.
@nikitaw @arichtman Admittedly, my largest problem with #Kubernetes was the lack of a real programming language with a static type system (which #Nix lacks) for creating manifests. #CDK is almost there, but the ergonomics were terrible when I used it.
In case it's useful I did end up making tooling to generate Kubernetes manifests with #TypeScript:
I'm looking for a back end / devops / SRE role that can hire me in Vancouver, BC (happy to do remote/hybrid)
I'm experienced and can be trusted around computers, especially ones that aren't my own.
I love #nix and functional languages (such as #clojure #elixir) and have experience with all the fancy industry standard tools (#terraform #kuberenetes #docker #ansible) as well as with all the other things expected of my role (cloud providers, CI/CD, IaC, networking, postgres)