blob: aedf4a0193f6456def3baac42142f042852d467b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
let
nixpkgs-tar = builtins.fetchTarball (import ./nixpkgs.nix);
nixpkgs = import "${nixpkgs-tar}" {};
nixos = import "${nixpkgs-tar}/nixos";
# TODO(bsima): buildNixOS should be split into multiple functions that each
# return one thing, instead of a single function that returns multiple things
buildNixOS = opts: let full = (nixos opts); in {
system = full.system;
vm = full.vm;
};
buildHaskellApp = import ./com/simatime/buildHaskellApp.nix nixpkgs;
in {
com.simatime = import ./com/simatime.nix { inherit buildNixOS; };
com.influencedbybooks = buildNixOS {
system = "x86_64-linux";
configuration = {
imports = [
./com/influencedbybooks/service.nix
# common infra
./com/simatime/users.nix
./com/simatime/packages.nix
];
nixpkgs.config.allowUnfree = true;
services.openssh = {
enable = true;
passwordAuthentication = false;
};
security.sudo.wheelNeedsPassword = true;
boot.cleanTmpDir = true;
};
} // {
ibb = buildHaskellApp {
name = "Com.Influencedbybooks";
apex = "Com.Influencedbybooks.Apex";
aero = "Com.Influencedbybooks.Aero";
deps = {
both = [
"clay"
"miso"
"protolude"
"servant"
"text"
];
apex = [
"MonadRandom"
"acid-state"
"blaze-html"
"blaze-markup"
"bytestring"
"ixset"
"random"
"safecopy"
"scotty"
"servant-server"
"text"
];
aero = [
"aeson"
"containers"
"ghcjs-base"
];
};
};
};
}
|