bosun,scollector: Fix NixOS modules to use bin attr of go pkgs

This commit is contained in:
Rickard Nilsson 2015-09-04 21:46:10 +02:00
parent 3163d1aa65
commit ed140ff927
2 changed files with 4 additions and 5 deletions

View File

@ -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" ];

View File

@ -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.
'';