nix_actor/README.md

34 lines
791 B
Markdown
Raw Normal View History

2023-03-26 22:02:55 +00:00
# Syndicated Nix Actor
An actor for interacting with the [Nix](https://nixos.org/) daemon via the [Syndicated Actor Model](https://syndicate-lang.org/).
*This is only a proof-of-concept and is not useful in any meaningful way.*
## Example configuration
```
2023-05-30 12:32:29 +00:00
? <nixspace ?nixspace> $nixspace [
2023-03-26 22:02:55 +00:00
2023-05-30 12:32:29 +00:00
? <realise "/nix/store/sv1yikjpf7q8b9w4xszb2ipg0cgcq1xv-imv-4.4.0.drv" ?outputs> [ ]
2023-03-26 22:02:55 +00:00
2023-05-30 12:32:29 +00:00
? <eval "3 * 4" {} _> []
? <eval "builtins.getEnv \"PATH\"" {impure: ""} _> []
2023-03-26 22:02:55 +00:00
2023-05-30 12:32:29 +00:00
? ?any [
$log ! <log "-" { nix: $any }>
]
$config [
<require-service <daemon nix_actor>>
? <service-object <daemon nix_actor> ?cap> [
$cap {
dataspace: $nixspace
}
]
<daemon nix_actor {
argv: "/usr/local/nix_actor"
protocol: application/syndicate
}>
]
2023-03-26 22:02:55 +00:00
]
```