bosun,scollector: Fix NixOS modules to use bin attr of go pkgs
This commit is contained in:
parent
3163d1aa65
commit
ed140ff927
|
@ -30,7 +30,8 @@ in {
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
example = literalExample "pkgs.bosun";
|
default = pkgs.bosun.bin;
|
||||||
|
example = literalExample "pkgs.bosun.bin";
|
||||||
description = ''
|
description = ''
|
||||||
bosun binary to use.
|
bosun binary to use.
|
||||||
'';
|
'';
|
||||||
|
@ -95,8 +96,6 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
services.bosun.package = mkDefault pkgs.bosun;
|
|
||||||
|
|
||||||
systemd.services.bosun = {
|
systemd.services.bosun = {
|
||||||
description = "bosun metrics collector (part of Bosun)";
|
description = "bosun metrics collector (part of Bosun)";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
|
@ -42,8 +42,8 @@ in {
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.scollector;
|
default = pkgs.scollector.bin;
|
||||||
example = literalExample "pkgs.scollector";
|
example = literalExample "pkgs.scollector.bin";
|
||||||
description = ''
|
description = ''
|
||||||
scollector binary to use.
|
scollector binary to use.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue