From 68b1aaf79cacea3a6bd4a38f90cecc627ce6de50 Mon Sep 17 00:00:00 2001 From: Rustam Efimov Date: Tue, 14 Apr 2026 20:33:45 +0300 Subject: [PATCH] fix(services/mail): rollback to old version --- services/mail/service.nix | 16 ++++++++++------ services/searxng/network.nix | 17 ++++++++--------- services/searxng/service.nix | 2 +- users/rus07tam/modules/firefox/default.nix | 7 +++++-- 4 files changed, 24 insertions(+), 18 deletions(-) diff --git a/services/mail/service.nix b/services/mail/service.nix index 442449e..ed4e837 100644 --- a/services/mail/service.nix +++ b/services/mail/service.nix @@ -8,12 +8,16 @@ let ; in { - imports = [ - (builtins.fetchTarball { - url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/main/nixos-mailserver-main.tar.gz"; - sha256 = "0kacdbb88lvlk994ksacdi6zwn1qi1y8y12rlkx9sjfyccxm18hr"; - }) - ]; + imports = + let + commit = "d98a6302f1c56e16d660e68f2aa41382f7ed766b"; + in + [ + (builtins.fetchTarball { + url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${commit}/nixos-mailserver-${commit}.tar.gz"; + sha256 = "1wk7fsmabngy98596rkpf6pxxajpkz2g25cimwzx3brr4bc2ck0l"; + }) + ]; mailserver = { inherit enable; diff --git a/services/searxng/network.nix b/services/searxng/network.nix index c2d81a2..5b5179a 100644 --- a/services/searxng/network.nix +++ b/services/searxng/network.nix @@ -12,15 +12,14 @@ mkIf cfg.enable { allowedTCPPorts = [ cfg.port ]; }; - services.nginx.virtualHosts = - mkIf (cfg.domain != null) { - "${cfg.domain}" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://127.0.0.1:${toString cfg.port}"; - proxyWebsockets = true; - }; + services.nginx.virtualHosts = mkIf (cfg.domain != null) { + "${cfg.domain}" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://127.0.0.1:${toString cfg.port}"; + proxyWebsockets = true; }; }; + }; } diff --git a/services/searxng/service.nix b/services/searxng/service.nix index 114b86d..b892808 100644 --- a/services/searxng/service.nix +++ b/services/searxng/service.nix @@ -30,7 +30,7 @@ mkIf cfg.enable { }; }; }; - + settings = { # Instance settings general = { diff --git a/users/rus07tam/modules/firefox/default.nix b/users/rus07tam/modules/firefox/default.nix index 1b6c16f..71517d7 100644 --- a/users/rus07tam/modules/firefox/default.nix +++ b/users/rus07tam/modules/firefox/default.nix @@ -35,7 +35,7 @@ "SearXNG" = { urls = [ { - template = "https://search.ruject.fun"; + template = "https://search.ruject.fun"; params = [ { name = "q"; @@ -45,7 +45,10 @@ } ]; icon = "${pkgs.searxng}/share/static/themes/simple/img/favicon.svg"; - definedAliases = [ "@searx" "@searxng" ]; + definedAliases = [ + "@searx" + "@searxng" + ]; }; "Nix Packages" = { urls = [