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