new stuff
This commit is contained in:
@@ -39,6 +39,27 @@ in {
|
||||
bind = "*";
|
||||
settings.protected-mode = "no";
|
||||
};
|
||||
|
||||
systemd.services.influxdb3 = {
|
||||
description = "InfluxDB 3 Time Series Database Engine";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment = {
|
||||
INFLUXDB3_NODE_IDENTIFIER_PREFIX = "node0";
|
||||
INFLUXDB3_OBJECT_STORE = "file";
|
||||
INFLUXDB3_DATA_DIR = "${config.syscfg.server.dataPath}/influxdb";
|
||||
INFLUXDB3_DB_DIR = "${config.syscfg.server.dataPath}/influxdb";
|
||||
INFLUXDB3_BEARER_TOKEN = "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9";
|
||||
};
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.influxdb3}/bin/influxdb3 serve";
|
||||
Restart = "on-failure";
|
||||
StateDirectory = "influxdb3";
|
||||
PrivateTmp = true;
|
||||
NoNewPrivileges = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
systemd.services.postgresql-init = {
|
||||
|
||||
Reference in New Issue
Block a user