feat: Added icons for homepage
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
{config, ...}: {
|
||||
services.searx = {
|
||||
enable = true;
|
||||
# configureUwsgi = true;
|
||||
# uwsgiConfig = {
|
||||
# socket = "/run/searx/searx.sock";
|
||||
# chmod-socket = "660";
|
||||
# };
|
||||
settings = {
|
||||
server = {
|
||||
port = "8889";
|
||||
secret_key = "foobar";
|
||||
base_url = "https://search.darksailor.dev";
|
||||
};
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
systemd.services.websurfx = {
|
||||
description = "Websurfx";
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["network.target"];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.websurfx}/bin/websurfx";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
User = "websurfx";
|
||||
Group = "websurfx";
|
||||
};
|
||||
};
|
||||
users.users.websurfx = {
|
||||
group = "websurfx";
|
||||
home = "/var/lib/websurfx";
|
||||
isSystemUser = true;
|
||||
# uid = config.ids.uids.websurfx;
|
||||
};
|
||||
users.groups.websurfx = {
|
||||
# gid = config.ids.gids.websurfx;
|
||||
};
|
||||
services.caddy.virtualHosts."search.darksailor.dev".extraConfig = ''
|
||||
reverse_proxy localhost:8889
|
||||
reverse_proxy localhost:8080
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user