forked from informatikr/hedis
-
Notifications
You must be signed in to change notification settings - Fork 29
/
flake.nix
41 lines (39 loc) · 1.35 KB
/
flake.nix
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
system.url = "github:nix-systems/default";
services-flake.url = "github:juspay/services-flake";
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.system;
imports = [
inputs.haskell-flake.flakeModule
inputs.process-compose-flake.flakeModule
];
perSystem = { self', pkgs, config, ... }: {
formatter = pkgs.nixpkgs-fmt;
process-compose.redis-service = { config, ... }: {
imports = [
inputs.services-flake.processComposeModules.default
];
services.redis-cluster."cluster1".enable = true;
services.redis."redis".enable = true;
};
haskellProjects.default = {
basePackages = pkgs.haskell.packages.ghc947;
autoWire = [ "packages" ];
};
packages.default = self'.packages.hedis;
devShells.default = pkgs.mkShell {
name = "hedis";
inputsFrom = [
config.haskellProjects.default.outputs.devShell
];
};
};
};
}