fix(services/mail): rollback to old version
Some checks failed
Nix CI / build (push) Has been cancelled
Some checks failed
Nix CI / build (push) Has been cancelled
This commit is contained in:
parent
eb255953d3
commit
68b1aaf79c
4 changed files with 24 additions and 18 deletions
|
|
@ -8,12 +8,16 @@ let
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
(builtins.fetchTarball {
|
let
|
||||||
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/main/nixos-mailserver-main.tar.gz";
|
commit = "d98a6302f1c56e16d660e68f2aa41382f7ed766b";
|
||||||
sha256 = "0kacdbb88lvlk994ksacdi6zwn1qi1y8y12rlkx9sjfyccxm18hr";
|
in
|
||||||
})
|
[
|
||||||
];
|
(builtins.fetchTarball {
|
||||||
|
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${commit}/nixos-mailserver-${commit}.tar.gz";
|
||||||
|
sha256 = "1wk7fsmabngy98596rkpf6pxxajpkz2g25cimwzx3brr4bc2ck0l";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
mailserver = {
|
mailserver = {
|
||||||
inherit enable;
|
inherit enable;
|
||||||
|
|
|
||||||
|
|
@ -12,15 +12,14 @@ mkIf cfg.enable {
|
||||||
allowedTCPPorts = [ cfg.port ];
|
allowedTCPPorts = [ cfg.port ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts =
|
services.nginx.virtualHosts = mkIf (cfg.domain != null) {
|
||||||
mkIf (cfg.domain != null) {
|
"${cfg.domain}" = {
|
||||||
"${cfg.domain}" = {
|
forceSSL = true;
|
||||||
forceSSL = true;
|
enableACME = true;
|
||||||
enableACME = true;
|
locations."/" = {
|
||||||
locations."/" = {
|
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
||||||
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
proxyWebsockets = true;
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,10 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
icon = "${pkgs.searxng}/share/static/themes/simple/img/favicon.svg";
|
icon = "${pkgs.searxng}/share/static/themes/simple/img/favicon.svg";
|
||||||
definedAliases = [ "@searx" "@searxng" ];
|
definedAliases = [
|
||||||
|
"@searx"
|
||||||
|
"@searxng"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
"Nix Packages" = {
|
"Nix Packages" = {
|
||||||
urls = [
|
urls = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue