File tree 1 file changed +22
-11
lines changed
1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 1
- { config , lib , pkgs , ... } :
1
+ {
2
+ config ,
3
+ lib ,
4
+ pkgs ,
5
+ ...
6
+ } :
2
7
{
3
8
4
9
environment . systemPackages = [ pkgs . php81 ] ;
11
16
12
17
users . users . tchekda . extraGroups = [ "www-data" ] ;
13
18
14
-
15
19
services = {
16
20
nginx = {
17
21
enable = true ;
18
22
19
23
virtualHosts =
20
24
let
21
- vhost = config : ( {
22
- http2 = true ;
23
- } // config ) ;
25
+ vhost =
26
+ config :
27
+ (
28
+ {
29
+ http2 = true ;
30
+ }
31
+ // config
32
+ ) ;
24
33
in
25
34
{
26
35
"avenir.local" = vhost {
60
69
mysql = {
61
70
enable = true ;
62
71
package = pkgs . mariadb ;
63
- ensureUsers = [ { name = "root" ; } ] ;
64
- initialDatabases = [ { name = "avenir" ; } ] ;
72
+ ensureUsers = [ { name = "root" ; } ] ;
73
+ initialDatabases = [ { name = "avenir" ; } ] ;
65
74
settings . mysqld . bind-address = "localhost" ;
66
75
} ;
67
76
68
77
postgresql = {
69
- enable = true ;
78
+ enable = false ;
70
79
package = pkgs . postgresql ;
71
- ensureUsers = [ {
72
- name = "tchekda" ;
73
- } ] ;
80
+ ensureUsers = [
81
+ {
82
+ name = "tchekda" ;
83
+ }
84
+ ] ;
74
85
authentication = pkgs . lib . mkOverride 10 ''
75
86
#type database DBuser auth-method
76
87
local all all trust
You can’t perform that action at this time.
0 commit comments