Commit fc39d50e authored by Profpatsch's avatar Profpatsch

containers/postgres: factor generated.dockerImages option

Should be reused by other containers.
parent 858cf26a
......@@ -2,7 +2,11 @@ let
# evaluate the deployment config
eval = import <nixpkgs/nixos> {
configuration = { lib, ... }: {
imports = [ ./postgres.nix ];
imports = [
./modules/docker-images.nix
./postgres.nix
];
config = {
org.techcultivation.deploy.database.enable = true;
org.techcultivation.deploy.database.buildDockerImage = true;
......
{ config, lib, ... }:
{
options = {
generated.dockerImages = lib.mkOption {
type = with lib.types; attrsOf package;
default = {};
description = ''
A place to put ALL THE docker images.
'';
};
};
}
......@@ -93,16 +93,6 @@ in {
buildDockerImage = lib.mkEnableOption "database container docker image";
};
# generic option on where to put generated docker images
# TODO: should be moved to a nicer file
options.generated.dockerImages = lib.mkOption {
type = with lib.types; attrsOf package;
default = {};
description = ''
Generated images for use with docker.
'';
};
## option implementation
config =
......
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