about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/bosun.nix
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-12-02 12:59:14 +0100
committerDomen Kožar <domen@dev.si>2014-12-02 12:59:14 +0100
commit55cf272c195d0a9f5c6cdef60fd6171f42367d53 (patch)
tree2473585d85fe1ce0284596aa9fa7a740f55f4e3d /nixos/modules/services/monitoring/bosun.nix
parenta0cf449fa58f0432cf01578c6104ed1eb21ebd29 (diff)
fixes #5198
Diffstat (limited to 'nixos/modules/services/monitoring/bosun.nix')
-rw-r--r--nixos/modules/services/monitoring/bosun.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/monitoring/bosun.nix b/nixos/modules/services/monitoring/bosun.nix
index 067c826f4e426..7a53ce1745424 100644
--- a/nixos/modules/services/monitoring/bosun.nix
+++ b/nixos/modules/services/monitoring/bosun.nix
@@ -30,7 +30,6 @@ in {
 
       package = mkOption {
         type = types.package;
-        default = pkgs.bosun;
         example = literalExample "pkgs.bosun";
         description = ''
           bosun binary to use.
@@ -94,8 +93,9 @@ in {
 
   };
 
-  config = mkIf config.services.bosun.enable {
-
+  config = mkIf cfg.enable {
+  
+    services.bosun.package = mkDefault pkgs.bosun; 
 
     systemd.services.bosun = {
       description = "bosun metrics collector (part of Bosun)";