Revert "fix: remove nix support"

This reverts commit 499bb9b126.
This commit is contained in:
electria 2026-10-08 09:46:17 -07:00
commit 6d087046b8
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
4 changed files with 290 additions and 0 deletions

View file

@ -47,6 +47,32 @@ On Alpine, `shadow` is needed for the user creation process during the install.
# xbps-install -S libxml2-devel libcurl-devel
```
### NixOS
Add the flake to your inputs and import the module. That is all you need.
Here's an example of using the modules in a flake:
```nix
# flake.nix
{
inputs = {
omnisearch = {
url = "git+https://git.bwaaa.monster/omnisearch";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, omnisearch, ... }: {
nixosConfigurations.mySystem = nixpkgs.lib.nixosSystem {
modules = [
omnisearch.nixosModules.default
{
services.omnisearch.enable = true;
}
];
};
};
}
```
### macOS (Homebrew)
```
$ brew install libxml2 curl openssl pkg-config