Skip to content

Commit

Permalink
Remove lock, rename settings to config
Browse files Browse the repository at this point in the history
  • Loading branch information
soebbing committed Dec 18, 2023
1 parent dad2441 commit a3770ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 153 deletions.
150 changes: 0 additions & 150 deletions examples/influxdb/devenv.lock

This file was deleted.

2 changes: 1 addition & 1 deletion examples/influxdb/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ in
];

services.influxdb.enable = true;
services.influxdb.settings = ''
services.influxdb.config = ''
[meta]
dir = "/tmp/influxdb/meta"
Expand Down
4 changes: 2 additions & 2 deletions src/modules/services/influxdb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ in
defaultText = lib.literalExpression "pkgs.influxdb";
};

settings = lib.mkOption {
config = lib.mkOption {
type = types.lines;
default = "";
description = "Configuration for InfluxDB-server";
};
};

config = lib.mkIf cfg.enable {
processes.influxdb-server.exec = "${cfg.package}/bin/influxd -config ${pkgs.writeText "influxdb.conf" cfg.settings}";
processes.influxdb-server.exec = "${cfg.package}/bin/influxd -config ${pkgs.writeText "influxdb.conf" cfg.config}";
};
}

0 comments on commit a3770ae

Please sign in to comment.