nixos/magi: Add CockroachDB configuration stub
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

This commit is contained in:
Mikael 2024-11-12 22:14:19 +01:00
parent b1cca37523
commit 647f3af56a
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -117,6 +117,22 @@
};
};
services.cockroachdb = {
enable = true;
listen.address = config.networking.fdqnOrHostname;
certsDir = "";
cache = ".05";
maxSqlMemory = ".05";
join = "casper.nyantec.com,melchior.nyantec.com,balthasar.nyantec.com";
extraArgs = [
"--cluster-name=nyantec"
"--store=path=/var/lib/cockroachdb,attrs=ssd,size=.5"
];
};
services.gobgpd = {
enable = true;
settings = {
@ -227,4 +243,11 @@
};
};
};
systemd.tmpfiles.rules = let
inherit (config.services) cockrochdb;
in [
"q /var/lib/cockroachdb 0750 ${cockroachdb.user} ${cockroachdb.group} - -"
"H /var/lib/cockroachdb - - - - +C"
];
}