mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
33 lines
740 B
Nix
33 lines
740 B
Nix
{
|
|
package,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
name = "odoo";
|
|
meta.maintainers = with lib.maintainers; [ mkg20001 ];
|
|
|
|
_module.args.package = lib.mkDefault pkgs.odoo;
|
|
|
|
nodes.server = {
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
};
|
|
|
|
services.odoo = {
|
|
enable = true;
|
|
package = package;
|
|
autoInit = true;
|
|
autoInitExtraFlags = [ "--without-demo=all" ];
|
|
domain = "localhost";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
server.wait_for_unit("odoo.service")
|
|
server.wait_until_succeeds("curl -s http://localhost:8069/web/database/selector | grep '<title>Odoo</title>'")
|
|
server.succeed("curl -s http://localhost/web/database/selector | grep '<title>Odoo</title>'")
|
|
'';
|
|
}
|