Skip to content

nix: Package zerofs in nix, add nixos module, and nixos tests#312

Open
hinshun wants to merge 1 commit into
Barre:mainfrom
hinshun:feature/nixos
Open

nix: Package zerofs in nix, add nixos module, and nixos tests#312
hinshun wants to merge 1 commit into
Barre:mainfrom
hinshun:feature/nixos

Conversation

@hinshun

@hinshun hinshun commented Dec 26, 2025

Copy link
Copy Markdown

Hi @Barre, not sure if there's appetite to have Nix support but I'd like to use ZeroFS in my NixOS fleet. I packaged zerofs in Nix, added NixOS modules which provides the systemd services for NixOS and I've also added integration tests using NixOS's qemu VM test harness that you can run locally and even breakpoint inside with machine.shell_interact().

Perhaps it's an improvement over the integration tests you're maintaining in github actions atm. See how they're used here in nix-snapshotter: https://github.com/pdtpartners/nix-snapshotter/blob/ce7698e34990e1e59b9693e5c8ec08f4d9bf2fb6/.github/workflows/ci.yml#L40 and https://github.com/pdtpartners/nix-snapshotter/tree/main/modules/nixos/tests.

If you have nix installed, you can run the tests with: nix run .#test-nfs, nix run .#test-nbd-zfs, etc. You could also get caching via cachix, etc.

@vercel

vercel Bot commented Dec 26, 2025

Copy link
Copy Markdown

@hinshun is attempting to deploy a commit to the Pierre Barre's projects Team on Vercel.

A member of the Team first needs to authorize it.

@cla-assistant

cla-assistant Bot commented Dec 26, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cla-assistant

cla-assistant Bot commented Dec 26, 2025

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Barre

Barre commented Jan 2, 2026

Copy link
Copy Markdown
Owner

Hi,

Thank you for the contribution!

Hi @Barre, not sure if there's appetite to have Nix support but I'd like to use ZeroFS in my NixOS fleet.

I'd like to have such support, I am not a Nix user myself, so I'll need a bit of time to review this properly.

@dcdq

dcdq commented Jan 4, 2026

Copy link
Copy Markdown

This is fantastic, thank you. Would definitely urge adopting more nix on top of this pr for zerofs development and cicd.

@lblasc

lblasc commented Jan 14, 2026

Copy link
Copy Markdown

Great to see more Nix users interested in zerofs! I’m maintaining the zerofs package in nixpkgs.

It would be useful to me if you could add NixOS modules to nixpkgs - currently, there are none.
Also integration tests (if not accepted to upstream) I think it could be usefully to have them in nixpkgs.

@randybias

Copy link
Copy Markdown

+1. I'm not using Nix yet, but I'm eyeballing it pretty hard.

@Barre Barre force-pushed the main branch 8 times, most recently from e07b7c0 to 34282ce Compare June 15, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants