forked from mirrors/nixpkgs
fixes #5198
This commit is contained in:
parent
a0cf449fa5
commit
55cf272c19
|
@ -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)";
|
||||
|
|
|
@ -12,7 +12,6 @@ in {
|
|||
options.virtualisation.kubernetes = {
|
||||
package = mkOption {
|
||||
description = "Kubernetes package to use.";
|
||||
default = pkgs.kubernetes;
|
||||
type = types.package;
|
||||
};
|
||||
|
||||
|
@ -443,6 +442,8 @@ in {
|
|||
cfg.kubelet.enable ||
|
||||
cfg.proxy.enable
|
||||
) {
|
||||
virtualisation.kubernetes.package = mkDefault pkgs.kubernetes;
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
users.extraUsers = singleton {
|
||||
|
|
Loading…
Reference in a new issue