nixos/redis: fix merging
https://github.com/NixOS/nixpkgs/pull/71584 did merging without mkMerge. cc @jtojnar
This commit is contained in:
parent
a2429cffa3
commit
6303131eb9
@ -185,10 +185,10 @@ in
|
|||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf config.services.redis.enable {
|
config = mkIf config.services.redis.enable {
|
||||||
|
boot.kernel.sysctl = (mkMerge [
|
||||||
boot.kernel.sysctl = {
|
{ "vm.nr_hugepages" = "0"; }
|
||||||
"vm.nr_hugepages" = "0";
|
( mkIf cfg.vmOverCommit { "vm.overcommit_memory" = "1"; } )
|
||||||
} // mkIf cfg.vmOverCommit { "vm.overcommit_memory" = "1"; };
|
]);
|
||||||
|
|
||||||
networking.firewall = mkIf cfg.openFirewall {
|
networking.firewall = mkIf cfg.openFirewall {
|
||||||
allowedTCPPorts = [ cfg.port ];
|
allowedTCPPorts = [ cfg.port ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user