PHP

From NixOS Wiki
Revision as of 08:25, 28 May 2020 by imported>Shyim (Created page with "__TOC__ == Install == <syntaxhighlight lang="nix> environment.systemPackages = with pkgs; [ php ]; </syntaxhighlight> See <code>nix search php</code> for additional versi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install

  environment.systemPackages = with pkgs; [ php ];

See nix search php for additional versions like php74, etc.

Setting custom php.ini configurations

environment.systemPackages =
  let
    php = pkgs.php.buildEnv { extraConfig = "memory_limit = 2G"; };
  in [
    php
  ];