r/Nix • • Nov 26 '24

Google's new online IDE uses Nix

Post image
155 Upvotes

r/Nix • • Oct 14 '26

Nixmap - An interractive course to learn Nix & NixOS by Vimjoyer

Thumbnail vimjoyer.com
95 Upvotes

r/Nix • • Aug 20 '25

Nix You can do that with nix!

Post image
87 Upvotes

r/Nix • • Mar 05 '26

devenv 2.0: A Fresh Interface to Nix

Thumbnail
devenv.sh
81 Upvotes

r/Nix • • Jan 28 '26

I built a Nix binary cache backed by Git (82% storage reduction)

81 Upvotes

I recently explored the structural similarities between Nix and Git. This led me to build Gachix, a decentralized binary cache that uses Git internals as the backend.

I wrote a blog post detailing the design, the mapping of Nix stores to Git objects, and benchmarks against tools like harmonia and nix-serve.

https://www.ephraimsiegfried.ch/posts/nix-binary-cache-backed-by-git

Some key results:

  • Storage: Achieved an ~82% reduction in size compared to a standard Nix store due to Git’s deduplication and compression.

  • Latency: Achieved the lowest median latency for retrieval, though average performance lags behind due to some outliers with large files.

  • Decentralization: Because it's Git, you get a replication protocol for free.

I’d love to hear your thoughts on this!


r/Nix • • Jul 17 '26

nix-android: declarative GrapheneOS/Android over adb, no root

70 Upvotes

At this point I've nix-ified every device I interact with... minus my phone. Figured it was time to change that. I had a GrapheneOS device laying around and decided it was time to bring my Pixel config into a flake.

Thus, nix-android was born.

Or rather, something very close to nix-darwin (for your phone). Declare Android apps and reachable device state in Nix, inspect a read-only plan, then converge over adb.

nix-android works at adb-shell privilege on a stock, locked-bootloader device. It requires neither root nor replacing the OS, weakening verified boot, or installing Nix on the phone. Tested on stock Android 16 and GrapheneOS.

Works best for Obtainium and F-Droid, but will work for Google Play if that's your thing. Play apps do require a manual tap when installing. Not going to manage your app data, sorry!

I hope some of you may find this useful. Frankly I've always wanted it, and while it's not perfect... I'm quite pleased with how it turned out.

https://github.com/devindudeman/nix-android/

nix flake init -t github:devindudeman/nix-android
android-rebuild plan   --flake .#phone --serial $SERIAL   # read-only diff
android-rebuild switch --flake .#phone --serial $SERIAL   # converge + record a generation
android-rebuild status --flake .#phone --serial $SERIAL   # what drifted since?

And the whole phone, declared:

# phone.nix
{
  device.name = "phone";
  device.abi = "arm64-v8a";

  # Hash-pinned from signed repo indexes; installs are unattended.
  # Pins are FLOORS: on-device updaters (Droid-ify/Obtainium) coexist fine.
  apps.fdroid.packages = [
    "org.mozilla.fennec_fdroid"
    "com.termux"
    "de.danoeh.antennapod"
    "dev.imranr.obtainium.fdroid"
  ];
  apps.fdroid.repos.izzyondroid = {
    url = "https://apt.izzysoft.de/fdroid/repo";
    fingerprint = "3bf0d6abfeae2f401707b6d966be743bf0eee49c2561b9ba39073711f628937a";
    packages = [ "app.comaps" ];
  };
  apps.release."com.x8bit.bitwarden".github = "bitwarden/android"; # GitHub-release APKs work too

  # Play apps are consent-gated: assist opens each listing, you tap Install.
  apps.play = [ "org.thoughtcrime.securesms" "com.google.android.apps.maps" ];

  android.darkMode = true;
  android.privateDns = "dns.example.com";
  android.defaultApps.browser = "org.mozilla.fennec_fdroid";

  # Enforced: camera works fully offline (GrapheneOS makes Network a runtime permission).
  android.permissions."com.google.android.GoogleCamera".revoke = [
    "android.permission.INTERNET"
  ];
}

Feedback appreciated!


r/Nix • • Apr 20 '26

NixOS The NixOS Tools That Actually Make a Difference • Asaduzzaman Pavel

Thumbnail
iampavel.dev
62 Upvotes

r/Nix • • Sep 06 '26

Nix nix-community/nix-wrapper-modules !

Thumbnail nix-community.github.io
46 Upvotes

https://github.com/nix-community/nix-wrapper-modules

nix-wrapper-modules has moved to nix-community!

nix-wrapper-modules is a library for creating wrapper derivations via the same module system you use in nixos, home manager and flake-parts, but applied at the derivation level.

It allows you to bundle your configuration directly into the derivation you build, meaning you can install your personal configuration of that program as if it were any other nix package. You can export it in module form to evaluate later, or override existing wrapped packages with slight tweaks to your options for different contexts.

It has a rich core feature set with more features planned, integrations with other module systems, and a growing library of premade wrapper modules for common programs (huge thanks to our contributors!)

Hope you find this useful! May your generations always roll back, but your progress move forward!


r/Nix • • Apr 14 '23

Nix I built 15-year-old software with Nix (including Firefox 2.0!)

Thumbnail
blinry.org
45 Upvotes

r/Nix • • Dec 05 '22

Support Should I migrate from homebrew to nix?

43 Upvotes

I'm using macbook M2 and homebrew, what downsides should I expect if I migrate to nix the package manager?

  1. Nix has more packages than homebrew. Why aren't people using nix, but still stick with homebrew?

  2. How often would I have to package by myself? The doc of nix still is not complete. And I don't think I will be learning how to package soon.

  3. For those who have migrated to nix on macbook, what are your experience? Do you still keep homebrew for emergencies or edge cases?


r/Nix • • Oct 29 '24

Flox | It's Time to Bring Nix to Work

Thumbnail
flox.dev
42 Upvotes

r/Nix • • Jun 22 '20

/r/nix has re-opened as the official subreddit for Nix and NixOS!

40 Upvotes

After some time of no functional presence on Reddit, we’re happy to announce the re-opening of /r/nix as the official Nix / NixOS subreddit.

We’d like to thank to the previous moderator of the subreddit, /u/gildedlink, for graciously providing us the keys to the ship.

Use this subreddit to get the word out to the community about projects, events, tips and whatever other Nix related materials.

/r/nix has just three explicit rules as we expect our excellent community to require but a light touch regarding moderation:

  • Stay On Topic: /r/Nix is a subreddit for discussion about Nix, NixOS and related technologies. Off-topic posts or comments are subject for removal.

  • Be Excellent To Each Other: Personal altercations and comments lacking sufficient charity are subject for removal.

  • Just Take It To ModMail: If you perceive a problem with any post or comment, please express your concerns through ModMail rather than risking breaking the other two rules.

Finally, thanks for participating.

We’re really excited to see the Nix content that has been flying under the radar and participate in the discussions around them.


r/Nix • • Jan 22 '26

Nix nix-shell is outdated

38 Upvotes

Be me,

software dev at some small local company,

having a 100 lines shell script to automatically fetch dependencies for a development environment (cmake, ninja, gcc-arm, llvm-arm, cppchek).

Read something about nix, some people seem to love it,

does the same, but mor prefessional.

Switching to nix.

Using nix-shell. Slow. '--help' does not work. Weired syntax.

Google. There is a newer version 'nix shell'.

Try 'nix shell' - requires "extra-experimental-features".

Google.

Results are 4+ years old.

Wtf is going on? Why is it still experimental?


r/Nix • • Aug 20 '26

I love Nix OS

Post image
36 Upvotes

r/Nix • • Oct 19 '26

Native Linux Builder is now generally available

Thumbnail
determinate.systems
34 Upvotes

r/Nix • • Aug 01 '25

Mise loves Nix

34 Upvotes

Ever wanted the smooth developer experience of Mise - with instant access to 100,000+ Nix packages?

Introducing mise-nix - a plugin that brings Nix package power into your Mise workflows.

✅ Example:

mise plugin install nix https://github.com/jbadeau/mise-nix.git
mise install nix:[email protected]

No flakes required. Just simple, reproducible installs with a great DX.

Give it a spin and let me know what you think!


r/Nix • • Dec 19 '24

Nix Introducing Odin, A code execution engine based on nix

33 Upvotes

I have been using nix for over a year now and I thought using it for code execution makes a lot of sense since generating a nix script for adding dependencies is 1000 times easier than any other method.

check it out: Odin

The code will run in rootless podman containers with a shared nix store, please let me know what you guys think about this project.

PS: If anyone has tips to improve performance of executing code with nix scripts please DM


r/Nix • • Mar 10 '26

CI should fail on your machine first

Thumbnail
blog.nix-ci.com
32 Upvotes

r/Nix • • Apr 25 '24

Packaging Supabase with Nix

Thumbnail
supabase.com
32 Upvotes

r/Nix • • Jan 28 '23

Nix nix-init - Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more

32 Upvotes

r/Nix • • 24d ago

Nixlang Cursery.nix: interactive web apps in pure Nix

Thumbnail cursery.psychollama.io
28 Upvotes

Ever wished you could write websites and frontend apps in pure Nix code?

Of course not. Nobody wants that. I don't even want that, and I built the damn thing.

Cursery.nix loads and evaluates Nix code in the browser at runtime, providing a virtual DOM, events, styling, and host IO. It's built on Snix using their WebAssembly target.

let
  inherit (import <web/dom>) html;
  inherit (import <web/io>) dispatch;
in

{
  init = 0;
  update = count: _action: count + 1;
  render = count: html.button {
    on.click = _: dispatch "increment" null;
  } "Clicks: ${toString count}";
}

Renders a button + count that increments on click. Wow.

Why?

Last year I saw bolt.snix.dev and immediately realized there weren't enough frontend frameworks.

It wasn't until NixCon 2026 and their two extra hack days that I had a captive audience, people sitting beside me to share in the horror.

It took until yesterday for the POC to mature into the full indictment of character you see now.

Is this AI?

Yes, and I reviewed every commit, so I guess it's 2/10 on a vegan code scale.


r/Nix • • Jun 06 '26

Nix The Guix Nix Abomination: Leveraging Guix derivations in Nix

Thumbnail fzakaria.com
27 Upvotes

r/Nix • • Sep 01 '20

New demo screencast: poetry2nix, dockerTools and nixbuild.net for Python development

Thumbnail
youtube.com
27 Upvotes

r/Nix • • Dec 29 '24

I have a lot of regret installing this on my Mac

26 Upvotes

I have heard so much good about Nix, and maybe it is when it works, but it shouldn't take this much obscure configuration to install a few packages.

As someone new coming in to learn, this feels impossible. I am a developer by trade, and I am used to reading through docs and googling errors. I have no idea what anything is or does. Everything I find is either a post about how great nix is, or just config snippets without any explanation of how anything works.

I'm at a place where I can't even uninstall it because my config is so broken. I am seriously thinking about just reinstalling MacOS and starting over. I have no idea what changes nix made to what, or where. How is this good?