Commit 3015470d authored by Profpatsch's avatar Profpatsch

containers/default: add documentation

parent e044f009
let
# upstream package set & library
nixpkgs = import <nixpkgs> {};
# our own packages
pkgs = {
sangha = nixpkgs.callPackage ../packages/sangha {};
};
# evaluate the deployment config
eval = import <nixpkgs/nixos> {
configuration = { ... }: {
imports = [ ./postgres.nix ];
config = {
org.techcultivation.deploy.database.enable = true;
org.techcultivation.deploy.database.buildDockerImage = true;
# This is a hidden module system attribute that can be used
# to add packages to the default package set.
# We add all packages from above so they can be referenced
# with e.g. `pkgs.sangha` in modules.
_module.args.pkgs = pkgs;
};
};
};
# TODO tmp
sanghaPostgresTemplate = eval.config.passthru;
# generated docker image for the sangha postgres server
sanghaPostgresDockerImage = eval.config.generated.dockerImages.sangha;
in {
......
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