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 {
|
||||
type = types.package;
|
||||
example = literalExample "pkgs.bosun";
|
||||
default = pkgs.bosun.bin;
|
||||
example = literalExample "pkgs.bosun.bin";
|
||||
description = ''
|
||||
bosun binary to use.
|
||||
'';
|
||||
|
@ -95,8 +96,6 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
services.bosun.package = mkDefault pkgs.bosun;
|
||||
|
||||
systemd.services.bosun = {
|
||||
description = "bosun metrics collector (part of Bosun)";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
|
|
@ -42,8 +42,8 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.scollector;
|
||||
example = literalExample "pkgs.scollector";
|
||||
default = pkgs.scollector.bin;
|
||||
example = literalExample "pkgs.scollector.bin";
|
||||
description = ''
|
||||
scollector binary to use.
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue