organizing my nix environment today making things simpler, more intuitive, and getting rid of duplicates. less mess
any #nixpkgs maintainer wanna help me out and review (and hopefully approve+merge) my pr?
"octodns-transip: init at 0.0.4": https://github.com/NixOS/nixpkgs/pull/396048
i'm not sure yet how to find people for reviews and merges when there are no maintainers set for the package/module or the maintainers are unresponsive :(
#introduction for my lovely new server.
I'm David (most contexts) or Stacktrace (#RollerDerby). I'm a software engineer at #Slack and I love building #FOSS (#Python, #Django, #Rust, and #Nix).
I made:
- stave.app, volunteer management for roller derby.
- paytransparency.work, tracking pay transparency laws.
- bibliothekai.ktema.org, cataloging translations of Greek & Roman classics.
My non-tech interests are #AncientGreek, my beloved #dachshund Mishka, botanic gardens, and #SciFi.
#Nix, or as I call it, the Bash Templating Language
Alright WHICH ONE OF YOU IS IT? Brisbane ain't that big and NixOS ain't that common.
I wrote a note about how to run a #Goaccess server on #NixOS: https://notes.abhinavsarkar.net/2025/goaccess-server-on-nixos
@BrodieOnLinux@mstdn.social
NixOS can be a good operating system, but it does have a few things that drives me nuts.
For example, they keep renaming their pack names and package aliases, and that becomes a problem because the system is looking for the name, and sometimes it wants the alias. So your whole system may refuse to install or rebuild, because some name somewhere has changed.
#NixOS #Nix #Linux
@alios
GOAL: or Isolated , interoperable env , shells by path, w/ central config cc
envs need not be interoperaple for different langs , say cc has a "devenv.lib.mkshell" for a rust tool `x` which is a runtime dep of epkgs 'ey`for rust work
Now If I enter this devshell with nix `develop ` and do a ` cargo install x` here
path of x is
> .devenv/state/cargo-install/bin/
Do note that my PWD is not ${HOME} here.
> But if I do a cargo install x from ${HOME} , it ll be in ~/.cargo/bin
Now lets say I install a melpapackages `ey` with my dotfiles' emacs.nix "emacs overlay`
It may be
`ls ~/.emacs.d/elpa/ | grep ey.elc` iff it's byte-compiled.
ey won't find it `x` , till you explicitly add this emacs load-path or to NIX-BUFFER's default.nix list of deps /project [This is just for the projects of 1 lang , nearly any serious work has > = 2] ,
or write .envrc /per project , so no global devenv/devshell.
Not every dir need be byte compiled
Possible reasons
While -
1. Nix does follow the XDG specs, Emacs does not fully follow it for its configuration and data files.
2. NIx Does not follow FHS hierarchy, Emacs Does.
3. Nix build re reproducible.
4. Nix is content addressed , store (hashed) paths
nix-instantiate --eval-only --expr '(import <nixpkgs> {}).emacs.outPath', it could be emacs or go or cargo or whatever your need, it need not have .
Some of your emacs data can be here. But I care bout getting deps in the path
One possible way could be to write a global devshell just for my init.el and launch it from there. But it's not easily extendable , more langs' projects ll put me back to square one.
Just nix-buffer seems to unsustainable
#nix #emacs
Learned a neat #Nix trick: You can easily cross-compile all programs in Nixpkgs (as long as they support the target platform)!
So instead of `nix build nixpkgs#ripgrep`, to build ripgrep for Windows, you can use:
nix build nixpkgs#pkgsCross.mingwW64.ripgrep
Other example targets are:
- "aarch64-multiplatform" (64-bit ARM)
- "gnu32" (i686)
- "riscv64" (64-bit RISC-V)
- "musl64" (x86_64, using musl instead of glibc)
Many more are defined in this file: https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix
Welp turns out this RNG trick doesn't actually work in #Nix pure eval mode since in that mode, you can only access a path using a string with context for that path, but that causes Nix to materialize that path. Hmm back to the drawing board I guess
looking up \"mac equivalent of windirstat\" is going to result in me installing nix
literally this specific reddit post and then I guess there's \"nix-darwin\" sō…
looking up \"mac equivalent of windirstat\" is going to result in me installing nix
literally this specific reddit post and then I guess there's \"nix-darwin\" sō…
"]Answer: yes, but it's pretty cursed.
Declarative and reproducible RNG in my #NixOS config and other #Nix crimes in my latest post! https://unnamed.website/posts/rng-cosine-nix/
WARNING
Apparently some #Nix / #NixOS matrix room(s) have gotten csam spam. I have not verified this claim myself, but honestly, we can all probably just not check matrix for a few days until hopefully things are back to normal.
I do *not* know what utilities #Matrix provides to prevent the proliferation of this information. If you joined the room from a different home server then your server may have synchronized the material to your infrastructure.
I think the safest course of action is not opening a matrix client for a few days...
Hey everyone!
#Nix and #NixOS enable declarative systems and reproducible builds — topics that are especially interesting to the systems community.
Next Tuesday (2025-04-15), Cyberus Technology is hosting a Nix #Meetup, and it's open to everyone!
If you're interested in joining, just react to this message with an emoji.
Cyberus Technology Office, Zwickauer Straße 46
Tue., April 15, 18-22 o'clock
Pizza and drinks included
Made a ton of improvements to https://drupal.org/project/drupal_flake -
- start-config now installs your existing site from configuration
- xdrush triggers an xdebug session from drush
- update-flake makes it easy to get new features in the future
- Composer now visible to PHP, so Project Browser and auto updates work
- Updates to include block to avoid conflicts with other environments
Check it out! In some ways this is easier/faster than #ddev ! #drupal #nix
I'm glad #nixos is gluten free, otherwise I wouldn't be able to use it. #linux #nix @matthewcroughan