Commit Graph

34 Commits

Author SHA1 Message Date
shivaraj-bh
e7eb9dec41 feat(open-webui): init
ported from:
https://github.com/shivaraj-bh/ollama-flake/blob/main/services/open-webui.nix

This was also recently upstreamed to
[nixpkgs](https://github.com/NixOS/nixpkgs/tree/master):
https://github.com/NixOS/nixpkgs/pull/316248

---------

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2024-06-14 03:11:07 +05:30
shivaraj-bh
d84efa4788 feat(ollama): init
ported from
https://github.com/shivaraj-bh/ollama-flake/blob/main/services/ollama.nix

Also see the nixos module:
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/ollama.nix
2024-06-12 16:09:12 +05:30
shivaraj-bh
24a7b57527 chore: run grafana test only on Linux; document that it is broken on Darwin 2024-06-03 22:08:35 +05:30
Mahdi Seyedan
2fba2e0009
feat: Add Weaviate service (#195)
resolves #90
2024-05-28 12:30:40 +05:30
Tim
c6b5977f65
feat: add tempo service (#192) 2024-05-19 17:06:45 +05:30
Adam Szucs-Matyas
c93d0ad98f chore(nginx): move nginx files to their own folder 2024-05-09 21:56:38 +05:30
shivaraj-bh
5229c9a2c3 chore(test): revert forcing the override for services-flake input
Forcing the override causes the update-flake-lock github action to fail
2024-04-29 23:57:41 +05:30
Shivaraj B H
f158353b59
fix(mysql)!: look for *.sql files in the top-level schema directory (#154)
* mysql service would assume that all the `*.sql` files in the directory, provided by `initialDatabases [{ schema = <directory>; … }]`, exists in a folder named [mysql-databases](291e7be83a/nix/mysql.nix (L239-L241)), after this change it would just look for all the `*.sql` files in the top-level schema directory.
* add tests
2024-03-18 22:32:08 +05:30
Sridhar Ratnakumar
3e849aa744 test: refactor, by factoring 'pkgs' in its own module
We don't need per-file package overlays, since we don't envision having too many of them. Whenever possible, get them from nixpkgs, to keep our tests nimble.
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
31151df8e4 test(grafana): Use older nixpkgs for grafana on macOS
This speeds up build, because we no longer have to compile grafana locally and wait for eternity.

cf. https://github.com/NixOS/nixpkgs/issues/273998
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
5a54b621ab test: Apply overlay only on darwin
Other platforms need not unnecessarily build these packages
2024-03-07 15:08:14 -05:00
Shivaraj B H
9cdee29122
refactor: overlays for packages in test flake (#120)
Avoid test flake clutter; separate overlay for each package.
2024-03-06 08:06:25 +05:30
Abhishek Singh
6aeb0eafe6
cassandra: init service (#116)
* cassandra: init service

* cassandra: add cassandra/conf files

* cassandra_test: change package to cassandra_4

* update readiness_probe

* update cassandra_test

* cassandra: add doc

* cassandra_4 doesn't require python-2

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-03-03 16:07:36 +05:30
Abhishek Singh
5e48c5a965
add pgAdmin service (#115) 2024-02-29 18:10:22 +05:30
Abhishek Singh
bdd6dde41a
add prometheus service (#114)
* prometheus: init service

* prometheus: add doc

* prometheus: update doc
2024-02-28 11:00:52 +05:30
Abhishek Singh
625f207034
add grafana service (#108) 2024-02-22 22:25:51 +05:30
Abhishek Singh
dafaeb048d
explicitly define project root in treefmt (#103)
* explicitly define project root in treefmt

* define `projectRootFile` in `treefmt`

* make `treefmt.projectRoot` as `inputs.services-flake`

* use github flake url

* flake.nix as projectRootFile

* add comment

* force override-input in test flake

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-02-20 11:06:02 +05:30
Sridhar Ratnakumar
e926d2d1d3 test: Fix impure access of parent paths 2024-02-11 03:58:59 -05:00
roman-bodavskiy
a0bde519ed
clickhouse init script (#91)
* clickhouse init script

* clickhouse schema test

* clickhouse folder

* docs: add initialDatabases to tips & tricks

* docs: use heading anchor

* add TODO to find an alternative to start clickhouse-server during init

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-02-07 22:03:06 +05:30
Shivaraj B H
af4af40169
Add Clickhouse service (#85) 2024-01-24 20:54:26 +05:30
Rohit Singh
22e121b246
Using psql command instead of postgres in initialScript (#66)
* Use psql instead of postgres, as a result, use `pg_ctl` to temporarily start the postgres server in `${name}-init` process.
* Avoid creating a custom `postgresPkg` with extensions by using `apply` attribute provided by `mkOption`
* Refactor setup script, use `writeShellApplication` and resolve shell-check errors

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2023-12-25 00:35:03 +05:30
Shivaraj B H
8cd80d7a16
nginx: service init (#69) 2023-12-22 16:42:51 +05:30
Shivaraj B H
072fb57419
Add MySQL service (#50) 2023-09-07 20:36:27 +05:30
Shivaraj B H
5fdd56f090
mkPackageFor in test flake (#44) 2023-08-31 13:00:06 +05:30
Shivaraj B H
b93a612aa7
Kafka and Zookeeper services (#42) 2023-08-29 17:04:04 +05:30
Shivaraj B H
6e7c208761
Add elasticsearch service (#37) 2023-08-23 23:07:18 +05:30
Shivaraj B H
76bad81d94
default port 0 set by the upstream (#43) 2023-08-23 23:06:11 +05:30
Shivaraj B H
72a3eaacc8
Process as test (VM -> Native test) (#38)
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2023-08-23 22:47:20 +05:30
Shivaraj B H
88a259d48e
Add Redis cluster service (#35) 2023-08-02 09:58:19 +05:30
Sridhar Ratnakumar
85a89560b6 Revert "dev flake: check example and tests"
This reverts commit 05345eaab7.
2023-07-10 19:36:14 -04:00
Sridhar Ratnakumar
05345eaab7 dev flake: check example and tests
It makes sense to consolidate all of this to in one place, the "dev flake".
2023-07-10 13:01:08 -04:00
Shivaraj B H
beaaca9f55
Add redis service (#8) 2023-07-10 20:44:26 +05:30
Sridhar Ratnakumar
599970cd8f Advance process-compose-flake 2023-06-19 18:01:04 -04:00
Sridhar Ratnakumar
f171932d13 Initial implementation: hello and postgres 2023-06-19 17:56:18 -04:00