arion/examples/minimal/arion-compose.nix

18 lines
409 B
Nix
Raw Normal View History

2018-12-18 16:53:37 +03:00
{ pkgs, ... }:
{
2019-10-29 13:04:25 +03:00
config.services = {
2018-12-18 16:53:37 +03:00
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";
};
};
}