feat: add Nix flake with package, devShell, and NixOS module#6265
Open
jmikedupont2 wants to merge 1 commit intoquickwit-oss:mainfrom
Open
feat: add Nix flake with package, devShell, and NixOS module#6265jmikedupont2 wants to merge 1 commit intoquickwit-oss:mainfrom
jmikedupont2 wants to merge 1 commit intoquickwit-oss:mainfrom
Conversation
Add flake.nix providing:
- packages.default: Quickwit 0.8.0 binary for x86_64-linux and aarch64-linux
(fetched from GitHub releases, patched with autoPatchelfHook)
- devShells.default: development shell with rustup, protobuf, cmake,
pkg-config, openssl, nodejs, and yarn
- nixosModules.quickwit: NixOS module with systemd service, including:
- Dedicated quickwit user/group
- Configurable listen address, port, and data directory
- YAML settings merged into quickwit.yaml
- systemd hardening (NoNewPrivileges, ProtectSystem, etc.)
- Optional firewall rules for HTTP (7280) and gRPC/gossip (7281)
Usage:
nix build # build quickwit binary
nix develop # enter dev shell
nix flake show # list all outputs
NixOS configuration example:
services.quickwit = {
enable = true;
listenAddress = "0.0.0.0";
openFirewall = true;
settings.peer_seeds = [ "node-2.local" ];
};
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add flake.nix providing:
Usage:
nix build # build quickwit binary
nix develop # enter dev shell
nix flake show # list all outputs
NixOS configuration example:
services.quickwit = {
enable = true; listenAddress = "0.0.0.0"; openFirewall = true; settings.peer_seeds = [ "node-2.local" ]; };
Description
Adding flake.nix
How was this PR tested?
Locally, on ubuntu running nix from installer.
Describe how you tested this PR.
I have a makefile to deploy to systemd and nginx proxy i can share