initial commit. after fucking it up once
This commit is contained in:
commit
b7cea98e99
48 changed files with 3437 additions and 0 deletions
29
services/couchdb/couchdb.mod.nix
Normal file
29
services/couchdb/couchdb.mod.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
glucose.modules = [
|
||||
(
|
||||
{ config, ... }:
|
||||
{
|
||||
# services.couchdb = {
|
||||
# enable = true;
|
||||
# adminUser = "Admin";
|
||||
# adminPass = config.sops.secrets.couchdb_admin_pass
|
||||
# }; # wanted to do this with the couchdb service. but it has no proper way to handle secrets. so i'm just going to use a container since i don't feel like writing my own couchdb package at the moment
|
||||
virtualisation.oci-containers = {
|
||||
containers.couchdb = {
|
||||
image = "couchdb:3.4.2";
|
||||
ports = [
|
||||
"5894:5984"
|
||||
];
|
||||
environmentFiles = [
|
||||
"${config.sops.templates."couchdb.env.secrets.yaml".path}"
|
||||
];
|
||||
volumes = [
|
||||
"/var/services/couchdb/data/:/opt/couchdb/data/"
|
||||
"/var/services/couchdb/etc:/opt/couchdb/etc/local.d/"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue