From a52a56a16e389efc988e0a13ffe7508a4677d1cb Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 26 Jul 2018 11:05:03 +0200 Subject: [PATCH 1/4] Paquet htop + telnet --- systems/LoutreOS/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systems/LoutreOS/configuration.nix b/systems/LoutreOS/configuration.nix index faff64c..5427b59 100644 --- a/systems/LoutreOS/configuration.nix +++ b/systems/LoutreOS/configuration.nix @@ -61,6 +61,8 @@ lftp nix-prefetch-scripts smartmontools + htop + telnet ]; nixpkgs.config.allowUnfree = true; From 74c6e229cf3ecc3c56d72159cd5c0395f6e80ca8 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 26 Jul 2018 11:05:19 +0200 Subject: [PATCH 2/4] Activation fail2ban --- systems/LoutreOS/services.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 15fd67e..e6904c2 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -21,6 +21,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"; From 9b0907391ea79104787f7e974832e93822532586 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 26 Jul 2018 11:07:10 +0200 Subject: [PATCH 3/4] Limitations RAM matrix --- systems/LoutreOS/services.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index e6904c2..95ac77b 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -229,6 +229,11 @@ in ''; }; + systemd.services.matrix-synapse.serviceConfig = { + MemoryHigh = "3G"; + MemoryMax = "4G"; + }; + services.pgmanage.enable = true; services.pgmanage.port = pgmanage_port; services.pgmanage.connections = { From 840fca4b9cb38d5aedea1c735ef7a8976f265729 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 26 Jul 2018 11:07:34 +0200 Subject: [PATCH 4/4] Matrix 0.33 --- systems/LoutreOS/services.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 95ac77b..c713999 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -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 { @@ -170,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 = [