Skip to content

Commit 487afbf

Browse files
Add haproxy with aws-lc option
1 parent bac7f71 commit 487afbf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/haproxy.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ config, lib, libS, pkgs, ... }:
2+
3+
let
4+
cfg = config.services.haproxy;
5+
in
6+
{
7+
options = {
8+
services.haproxy = {
9+
compileWithAWSlc = libS.mkOpinionatedOption "compile nginx with aws-lc as crypto library";
10+
};
11+
};
12+
13+
config = lib.mkIf cfg.enable {
14+
services.haproxy = {
15+
package = lib.mkIf cfg.compileWithAWSlc (pkgs.haproxy.override { sslLibrary = "aws-lc"; });
16+
};
17+
};
18+
}

0 commit comments

Comments
 (0)