hnix-store/hnix-store-remote/README.md
2023-11-22 09:07:14 +01:00

31 lines
585 B
Markdown

# hnix-store-remote
[Nix] worker protocol implementation for interacting with remote Nix store
via `nix-daemon`.
[Nix]: https://nixos.org/nix
## API
[System.Nix.Store.Remote]: ./src/System/Nix/Store/Remote.hs
## Example
```haskell
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (void)
import Control.Monad.IO.Class (liftIO)
import System.Nix.Store.Remote
main :: IO ()
main = do
void $ runStore $ do
syncWithGC
roots <- findRoots
liftIO $ print roots
res <- addTextToStore "hnix-store" "test" mempty RepairMode_DontRepair
liftIO $ print res
```