nixos/vector: add package
Option
This commit is contained in:
parent
b3fb03d00f
commit
8989ea2778
@ -8,6 +8,8 @@ in
|
|||||||
options.services.vector = {
|
options.services.vector = {
|
||||||
enable = mkEnableOption (lib.mdDoc "Vector");
|
enable = mkEnableOption (lib.mdDoc "Vector");
|
||||||
|
|
||||||
|
package = mkPackageOptionMD pkgs "vector" { };
|
||||||
|
|
||||||
journaldAccess = mkOption {
|
journaldAccess = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -47,7 +49,7 @@ in
|
|||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
ExecStart = "${pkgs.vector}/bin/vector --config ${validateConfig conf}";
|
ExecStart = "${getExe cfg.package} --config ${validateConfig conf}";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
Restart = "no";
|
Restart = "no";
|
||||||
StateDirectory = "vector";
|
StateDirectory = "vector";
|
||||||
|
Loading…
Reference in New Issue
Block a user