diff --git a/README.md b/README.md index 16a38b1..b8f5e2a 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,6 @@ make run ``` Requires NixOS :) + +Useful resources +* Use Xdebug in VSCode https://khotsufyan.medium.com/setup-xdebug-with-visual-studio-code-3eed3e411daa \ No newline at end of file diff --git a/vm-nextcloud.nix b/vm-nextcloud.nix index 487bda3..2b0a151 100644 --- a/vm-nextcloud.nix +++ b/vm-nextcloud.nix @@ -2,7 +2,7 @@ # - Creating symlink to config dir # - Patch chgrp in Nextcloud module -{ pkgs, config, lib, options, ... }:{ +{ pkgs, config, lib, options, ... }: { disabledModules = [ "services/web-apps/nextcloud.nix" @@ -41,6 +41,16 @@ adminuser = "admin"; adminpassFile = "${pkgs.writeText "adminpass" "test123"}"; }; + phpPackage = lib.mkForce (pkgs.php.buildEnv { + extensions = ({ enabled, all }: enabled ++ (with all; [ + xdebug + ])); + }); + phpOptions = { + "xdebug.mode" = "debug"; + "xdebug.client_host" = "10.0.2.2"; + "xdebug.client_port" = "9000"; + }; appstoreEnable = false; extraOptions = { mail_smtpmode = "sendmail";