Commit 3787010c authored by Profpatsch's avatar Profpatsch

containers: rename buildDockerImage to dockerImage.enable

parent 464cf148
......@@ -10,8 +10,8 @@ let
];
config = {
org.techcultivation.deploy.database.buildDockerImage = true;
org.techcultivation.deploy.queue.buildDockerImage = true;
org.techcultivation.deploy.database.dockerImage.enable = true;
org.techcultivation.deploy.queue.dockerImage.enable = true;
# our own packages
nixpkgs.overlays = [(self: _: {
......
......@@ -90,9 +90,19 @@ in {
# TODO: might need to change the namespace name
options.org.techcultivation.deploy.database = {
enable = lib.mkEnableOption "database container";
buildDockerImage = lib.mkEnableOption "database container docker image";
dockerImage = {
enable = lib.mkEnableOption "database container docker image";
insertMockData = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to add the mock data (sets tag to "mock").
'';
};
};
};
## option implementation
config =
......@@ -196,7 +206,7 @@ in {
in
lib.mkMerge [
(lib.mkIf cfg.enable nixosConfig)
(lib.mkIf cfg.buildDockerImage dockerConfig)
(lib.mkIf cfg.dockerImage.enable dockerConfig)
({
# TODO temporary
passthru = sanghaInitDatabase;
......
......@@ -7,7 +7,7 @@ in {
options.org.techcultivation.deploy.queue = {
enable = lib.mkEnableOption "queue container";
buildDockerImage = lib.mkEnableOption "queue container docker image";
dockerImage.enable = lib.mkEnableOption "queue container docker image";
};
## option implementation
......@@ -88,7 +88,7 @@ in {
in
lib.mkMerge [
(lib.mkIf cfg.enable nixosConfig)
(lib.mkIf cfg.buildDockerImage dockerConfig)
(lib.mkIf cfg.dockerImage.enable dockerConfig)
];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment