mkIf nonsense
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
{ config, lib, ... }: lib.mkIf config.sysconfig.docker.enable {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
options.sysconfig.docker.portainer.enable = with lib; mkOption {
|
options.sysconfig.docker.portainer.enable = with lib; mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = /*lib.mkIf config.sysconfig.docker.portainer.enable*/ {
|
config = lib.mkIf (config.sysconfig.docker.portainer.enable && config.sysconfig.docker.enable) {
|
||||||
|
|
||||||
virtualisation.oci-containers.contianers.portainer = {
|
virtualisation.oci-containers.contianers.portainer = {
|
||||||
image = "portainer/portainer-ce";
|
image = "portainer/portainer-ce";
|
||||||
|
|||||||
Reference in New Issue
Block a user