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; diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 15fd67e..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 { @@ -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 = {