-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.nix
116 lines (91 loc) · 3.35 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{ pkgs, ... }:
{
# This is the project devenv.sh configuration file for this project, specifying
# all dependencies.
#
# USAGE
#
# - devenv shell: creates a shell environment for development.
# - flow [flow-command]: run any ./flow command - no matter which directory you are in.
# - flow server:run: run the Neos server
# - help-spx: show help how to debug with SPX
# -
# - devenv up: start all surrounding services (e.g. mysql)
# - rm -Rf .devenv/: remove the database and all other files
#
# REFERENCE
#
# See https://devenv.sh/reference/options/ for all options.
########################################
# Neos CMS
########################################
neos = {
enable = true;
# if Neos is installed in a subdirectory of the project root, specify the distributionDir accordingly
# (pointing to composer.json and ./flow)
#distributionDir = "app";
# PHP Package version to use (default: pkgs.php81)
#phpPackage = pkgs.php82;
# MYSQL support and Flow/Neos auto-configuration (default: enabled)
# by default, port 4406 is used - see below for overriding
# user: neos
# password: (empty)
# database: neos
#mysql = false;
# VIPS PHP extension, composer package + Flow/Neos auto-configuration (default: enabled)
#vips = false;
# SPX profiler PHP extension (default: enabled)
# to open the profiler, append: ?SPX_UI_URI=/&SPX_KEY=dev
#spx = false;
# Configure PHPStorm / I ntelliJ correctly (default: enabled)
# enables the Neos plugin, sets the correct PHP interpreter, adds a database connection
#jetbrainsIdeConfig = false;
# generate Configuration/Settings.yaml (default: enabled)
#flowConfig = false;
};
########################################
# additional PHP configuration
########################################
# use the following line to enable xdebug; and you can also add additional extensions.
#languages.php.extensions = [ "xdebug" ];
# add custom PHP.ini directives
#languages.php.ini = ''
# xdebug.mode = debug;
#'';
########################################
# additional MySQL configuration
########################################
# change the MYSQL port:
#services.mysql.settings.mysqld.port = 12345;
# change from mysql to mariadb (!warning: really slow migrations on OSX!)
#services.mysql.package = pkgs.mariadb;
# create multiple databases (the 1st one will be used for Neos)
#services.mysql.initialDatabases = [
# { name = "neos"; },
# { name = "other-db"; },
#];
# create multiple users (the 1st one will be used for Neos)
#services.mysql.ensureUsers = [
# {
# name = "neos";
# ensurePermissions = {
# "neos.*" = "ALL PRIVILEGES";
# };
# }
#];
########################################
# extra devenv.sh features
########################################
# set env variables
#env.GREET = "devenv";
# add extra scripts, see: https://devenv.sh/scripts/
#scripts.hello.exec = "echo hello from $GREET";
# add extra nix packages:
#packages = [ pkgs.git ];
# enable other languages, e.g. Node JS:
#languages.javascript.enable = true;
# enable starship shell prompt:
#starship.enable = true;
# add extra processes to run during "devenv up" (e.g style compilation): https://devenv.sh/processes/
#processes.ping.exec = "ping example.com";
}