Compare commits

...

4 Commits

Author SHA1 Message Date
nyanloutre 840fca4b9c Matrix 0.33 2018-07-26 11:07:34 +02:00
nyanloutre 9b0907391e Limitations RAM matrix 2018-07-26 11:07:10 +02:00
nyanloutre 74c6e229cf Activation fail2ban 2018-07-26 11:05:19 +02:00
nyanloutre a52a56a16e Paquet htop + telnet 2018-07-26 11:05:03 +02:00
2 changed files with 17 additions and 0 deletions

View File

@ -61,6 +61,8 @@
lftp
nix-prefetch-scripts
smartmontools
htop
telnet
];
nixpkgs.config.allowUnfree = true;

View File

@ -10,6 +10,13 @@ let
pgmanage_port = 52347;
max_port = 52348;
musique_port = 52349;
ekleog_matrix_0_33 = pkgs.fetchgit {
url = "https://github.com/Ekleog/nixpkgs.git";
rev = "fe1fa933d168faec56767a9bd1daa0d47070bdf0";
sha256 = "02nlcs46ijjkwl8i521555gpd0w2if87p9bmdn2s5g728pz8mh27";
};
ekleog_matrix_0_33_pkgs = import ekleog_matrix_0_33 {};
in
{
@ -21,6 +28,8 @@ in
../../services/site-max.nix
];
services.fail2ban.enable = true;
services.smartd.enable = true;
services.smartd.notifications.mail.enable = true;
services.smartd.notifications.mail.recipient = "paul@nyanlout.re";
@ -168,6 +177,7 @@ in
services.postgresql.enable = true;
services.matrix-synapse = {
enable = true;
package = ekleog_matrix_0_33_pkgs.matrix-synapse;
enable_registration = true;
server_name = "nyanlout.re";
listeners = [
@ -227,6 +237,11 @@ in
'';
};
systemd.services.matrix-synapse.serviceConfig = {
MemoryHigh = "3G";
MemoryMax = "4G";
};
services.pgmanage.enable = true;
services.pgmanage.port = pgmanage_port;
services.pgmanage.connections = {