Skip to content

Commit d009fa1

Browse files
committed
chore: disable postgres
1 parent 00928bf commit d009fa1

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

hspecter/dev.nix

+22-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
{ config, lib, pkgs, ... }:
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
27
{
38

49
environment.systemPackages = [ pkgs.php81 ];
@@ -11,16 +16,20 @@
1116

1217
users.users.tchekda.extraGroups = [ "www-data" ];
1318

14-
1519
services = {
1620
nginx = {
1721
enable = true;
1822

1923
virtualHosts =
2024
let
21-
vhost = config: ({
22-
http2 = true;
23-
} // config);
25+
vhost =
26+
config:
27+
(
28+
{
29+
http2 = true;
30+
}
31+
// config
32+
);
2433
in
2534
{
2635
"avenir.local" = vhost {
@@ -60,17 +69,19 @@
6069
mysql = {
6170
enable = true;
6271
package = pkgs.mariadb;
63-
ensureUsers = [{ name = "root"; }];
64-
initialDatabases = [{ name = "avenir"; }];
72+
ensureUsers = [ { name = "root"; } ];
73+
initialDatabases = [ { name = "avenir"; } ];
6574
settings.mysqld.bind-address = "localhost";
6675
};
6776

6877
postgresql = {
69-
enable = true;
78+
enable = false;
7079
package = pkgs.postgresql;
71-
ensureUsers = [{
72-
name = "tchekda";
73-
}];
80+
ensureUsers = [
81+
{
82+
name = "tchekda";
83+
}
84+
];
7485
authentication = pkgs.lib.mkOverride 10 ''
7586
#type database DBuser auth-method
7687
local all all trust

0 commit comments

Comments
 (0)