Compare commits
3 commits
801dcdbfd0
...
c98a9e9c83
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c98a9e9c83 | ||
![]() |
9095c3d075 | ||
![]() |
5ddbde5ec7 |
3 changed files with 29 additions and 14 deletions
|
@ -281,7 +281,7 @@ in {
|
||||||
mail = mkProvisionEmail name;
|
mail = mkProvisionEmail name;
|
||||||
groups = with lconfig.groups; [ admin nextcloud_admin grafana_admin drasl_admin member ];
|
groups = with lconfig.groups; [ admin nextcloud_admin grafana_admin drasl_admin member ];
|
||||||
membermaildiskquota = 100*1024*1024; # mb
|
membermaildiskquota = 100*1024*1024; # mb
|
||||||
nextcloudquota = 100*1024*1024; # mb
|
nextcloudquota = 500*1024*1024; # mb
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
svc_domain = "searx.${config.mine.shared.settings.domain}";
|
svc_domain = "searx.${config.mine.shared.settings.domain}";
|
||||||
port = 7378;
|
port = 7378;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
runInUwsgi = true;
|
runInUwsgi = true;
|
||||||
|
@ -18,6 +24,13 @@ in {
|
||||||
base_url = "https://${svc_domain}";
|
base_url = "https://${svc_domain}";
|
||||||
secret_key = "@SECRET_KEY@";
|
secret_key = "@SECRET_KEY@";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
search.formats = [
|
||||||
|
"html"
|
||||||
|
"json"
|
||||||
|
"rss"
|
||||||
|
"csv"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -25,7 +38,7 @@ in {
|
||||||
services.nginx.virtualHosts."${svc_domain}" = config.mine.shared.lib.authelia.mkProtectedWebsite {
|
services.nginx.virtualHosts."${svc_domain}" = config.mine.shared.lib.authelia.mkProtectedWebsite {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
||||||
locations."/" = config.mine.shared.lib.authelia.mkProtectedLocation {
|
locations."/" = config.mine.shared.lib.authelia.mkProtectedLocation {
|
||||||
proxyPass = "http://localhost:${builtins.toString port}";
|
proxyPass = "http://localhost:${builtins.toString port}";
|
||||||
};
|
};
|
||||||
|
@ -37,12 +50,14 @@ in {
|
||||||
description = "We host our own searXNG, use it to search the web!";
|
description = "We host our own searXNG, use it to search the web!";
|
||||||
url = "https://${svc_domain}";
|
url = "https://${svc_domain}";
|
||||||
|
|
||||||
package = let
|
package =
|
||||||
pkg = config.services.searx.package;
|
let
|
||||||
in {
|
pkg = config.services.searx.package;
|
||||||
name = pkg.pname;
|
in
|
||||||
version = pkg.version;
|
{
|
||||||
meta = pkg.meta;
|
name = pkg.pname;
|
||||||
};
|
version = pkg.version;
|
||||||
|
meta = pkg.meta;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,10 @@
|
||||||
"homepage": null,
|
"homepage": null,
|
||||||
"owner": "RasmusRendal",
|
"owner": "RasmusRendal",
|
||||||
"repo": "drtvrss",
|
"repo": "drtvrss",
|
||||||
"rev": "dc0900835a5ed723c6e53d2c408ba7d51ef27bb9",
|
"rev": "6785b019639b6ea32857761100fe88ecab640d4a",
|
||||||
"sha256": "0k450i7fl4l0avmdz2dzdrmharypajq3qmyj4xsc6xvgi23nfrb0",
|
"sha256": "1m8srjvhi5z12wbdldhqmxw289g9mnfmb2wvfimbgx5frm5vf1pk",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/RasmusRendal/drtvrss/archive/dc0900835a5ed723c6e53d2c408ba7d51ef27bb9.tar.gz",
|
"url": "https://github.com/RasmusRendal/drtvrss/archive/6785b019639b6ea32857761100fe88ecab640d4a.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue