Compare commits

...

2 commits

Author SHA1 Message Date
Robert Hensing
bafed69246 Simplify the submodule syntax, triggering the issue 2019-10-07 16:29:56 +02:00
Robert Hensing
4b6302a613 Extract the webservice service into file 2019-10-07 16:22:35 +02:00
2 changed files with 18 additions and 11 deletions

View file

@ -2,16 +2,11 @@
{
config.docker-compose.services = {
webserver = {
service.useHostStore = true;
service.command = [ "sh" "-c" ''
cd "$$WEB_ROOT"
${pkgs.python3}/bin/python -m http.server
'' ];
service.ports = [
"8000:8000" # host:container
];
service.environment.WEB_ROOT = "${pkgs.nix.doc}/share/doc/nix/manual";
};
webserver.imports = [ ./service-webserver.nix ];
# webserver = {...}: {
# imports = [ ./service-webserver.nix ];
#};
};
}

View file

@ -0,0 +1,12 @@
{ pkgs, ... }: {
service.useHostStore = true;
service.command = [ "sh" "-c"
''
cd "$$WEB_ROOT"
${pkgs.python3}/bin/python -m http.server
'' ];
service.ports = [
"8000:8000" # host:container
];
service.environment.WEB_ROOT = "${pkgs.nix.doc}/share/doc/nix/manual";
}