nixos/prometheus/exporters/varnish: improve some defaults
This commit is contained in:
parent
b7deb4cf75
commit
a28591680b
1 changed files with 3 additions and 2 deletions
|
@ -45,7 +45,8 @@ in
|
||||||
};
|
};
|
||||||
instance = mkOption {
|
instance = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = config.services.varnish.stateDir;
|
||||||
|
defaultText = lib.literalExpression "config.services.varnish.stateDir";
|
||||||
description = ''
|
description = ''
|
||||||
varnishstat -n value.
|
varnishstat -n value.
|
||||||
'';
|
'';
|
||||||
|
@ -66,7 +67,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
serviceOpts = {
|
serviceOpts = {
|
||||||
path = [ pkgs.varnish ];
|
path = [ config.services.varnish.package ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
RestartSec = mkDefault 1;
|
RestartSec = mkDefault 1;
|
||||||
DynamicUser = false;
|
DynamicUser = false;
|
||||||
|
|
Loading…
Reference in a new issue