Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misuzu/process-compose-deploy
PoC process-compose deployments for NixOS
https://github.com/misuzu/process-compose-deploy
nix nixos process-compose
Last synced: 11 days ago
JSON representation
PoC process-compose deployments for NixOS
- Host: GitHub
- URL: https://github.com/misuzu/process-compose-deploy
- Owner: misuzu
- License: mit
- Created: 2024-12-28T12:17:51.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2024-12-28T13:09:26.000Z (11 days ago)
- Last Synced: 2024-12-28T13:26:54.372Z (11 days ago)
- Topics: nix, nixos, process-compose
- Language: Nix
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# process-compose-deploy
### Set up
```nix
inputs.process-compose-deploy.url = "github:misuzu/process-compose-deploy";imports = [ inputs.process-compose-deploy.nixosModule ];
services.process-compose-deploy.default.enable = true;
```### Attach default instance
```
sudo process-compose-adm-default attach
```### Deploy simple example
```
sudo process-compose-deploy-default $(nix build --print-out-paths --no-link github:misuzu/process-compose-deploy?dir=example/simple) -v
```### Deploy `microvm.nix` instance
```
sudo process-compose-deploy-default $(nix build --print-out-paths --no-link github:misuzu/process-compose-deploy?dir=example/microvm) -v
```### Deploy `services-flake` service
```
sudo process-compose-deploy-default $(nix build --print-out-paths --no-link github:juspay/services-flake?dir=example/simple) -v
```### Remote deployments
```
# build the flake
nix build github:juspay/services-flake?dir=example/simple
# push the build result to cache (e.g. attic)
nix shell nixpkgs#attic-client -c attic push mycache $(readlink -f ./result)
# deploy
ssh myuser@myhost sudo process-compose-deploy-default $(readlink -f ./result)
```## Related projects
- [`process-compose-flake`](https://github.com/juspay/services-flake): A `flake-parts` module to spin up processes for development by leveraging `process-compose`.
- [`services-flake`](https://github.com/juspay/services-flake): NixOS-like services built on top of `process-compose-flake`.
- [`microvm.nix`](https://github.com/astro/microvm.nix): NixOS MicroVMs.
- [`attic`](https://github.com/zhaofengli/attic): Multi-tenant Nix Binary Cache.