2024-03-22 16:26:52 -07:00
|
|
|
{config, pkgs, lib, ...}:
|
|
|
|
{
|
2024-03-10 00:20:39 -08:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
ddev
|
2024-03-10 16:02:17 -07:00
|
|
|
jetbrains.phpstorm
|
2024-03-10 00:20:39 -08:00
|
|
|
mkcert
|
|
|
|
php81
|
|
|
|
polypane
|
2024-03-10 16:02:17 -07:00
|
|
|
vscode
|
2024-03-10 00:20:39 -08:00
|
|
|
];
|
|
|
|
|
2024-03-22 16:26:52 -07:00
|
|
|
# increase inotify limits - https://intellij-support.jetbrains.com/hc/en-us/articles/15268113529362-Inotify-Watches-Limit-Linux
|
|
|
|
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 1048576; };
|
2024-03-10 00:20:39 -08:00
|
|
|
|
|
|
|
# DDev setup
|
|
|
|
# Install & enable docker.
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
|
|
|
# Allow Xdebug to use port 9003.
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9000 9003 ];
|
|
|
|
|
|
|
|
# Make it possible for ddev to modify the /etc/hosts file.
|
|
|
|
# Otherwise you'll have to manually change the
|
|
|
|
# hosts configuration after creating a new ddev project.
|
|
|
|
environment.etc.hosts.mode = "0644";
|
|
|
|
|
|
|
|
}
|