Skip to content

Commit b79b9c0

Browse files
committed
Add the module.nix used for deployment
1 parent fd8e691 commit b79b9c0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

module.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{ nixosPkgs, hostName, enableHttps, ...}@args:
2+
let
3+
system = "x86_64-linux";
4+
iosSdkVersion = "10.2";
5+
appRoot = import ./src/thunk.nix;
6+
kpkgs = import "${appRoot}/dep/kpkgs" { inherit system; };
7+
obelisk = import "${appRoot}/.obelisk/impl" { inherit system iosSdkVersion; inherit (kpkgs) reflex-platform-func;};
8+
pkgs = obelisk.reflex-platform.nixpkgs;
9+
obApp = import "${appRoot}/obApp.nix" { inherit system iosSdkVersion obelisk; };
10+
pactServerModule = import "${appRoot}/pact-server/service.nix";
11+
in {...}: {
12+
imports = [
13+
(obelisk.serverModules.mkBaseEc2 args)
14+
# (nixosPkgs.path + /nixos/modules/virtualisation/virtualbox-image.nix)
15+
(pactServerModule {
16+
pactPort = 7010;
17+
nginxPort = 443;
18+
pactDataDir = "/var/lib/chainweaver";
19+
pactUser = "pact";
20+
location = "/pact/";
21+
inherit hostName enableHttps obApp pkgs;
22+
})
23+
];
24+
}

0 commit comments

Comments
 (0)