-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevenv.nix
68 lines (61 loc) · 1.33 KB
/
devenv.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
pkgs,
config,
...
}:
{
# https://devenv.sh/supported-languages/php/
languages.php = {
enable = true;
version = "8.3";
ini = ''
memory_limit = 256M
'';
fpm.pools.web = {
settings = {
"pm" = "dynamic";
"pm.max_children" = 5;
"pm.start_servers" = 2;
"pm.min_spare_servers" = 1;
"pm.max_spare_servers" = 5;
};
phpEnv = {
MATOMO_URL = "https://p.qownnotes.org";
};
};
};
services.caddy.enable = true;
services.caddy.virtualHosts."http://localhost:8000" = {
extraConfig = ''
root * public
php_fastcgi unix/${config.languages.php.fpm.pools.web.socket}
file_server
'';
};
# https://devenv.sh/packages/
packages = with pkgs; [
git
symfony-cli
just # task runner
zellij # smart terminal workspace
lazygit # git terminal
fzf # fuzzy finder
# Packages for treefmt
nodePackages.prettier
nixfmt-rfc-style
shfmt
statix
taplo
php83Packages.php-cs-fixer
];
# https://devenv.sh/git-hooks/
# git-hooks.hooks.shellcheck.enable = true;
git-hooks.hooks.treefmt.enable = true;
# https://devenv.sh/integrations/dotenv/
dotenv.enable = true;
dotenv.filename = [
".env"
".env.local"
];
# See full reference at https://devenv.sh/reference/options/
}