+ invidious + searx

This commit is contained in:
m3tam3re 2023-02-07 09:29:30 +01:00
parent e67ada7132
commit 84f7df9860
10 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.features.cli.fish;
in {
options.features.cli.fish.enable = mkEnableOption "enable fish shell";
config = mkIf cfg.enable {
programs.fish = {
enable = true;
plugins = [{
name = "foreign-env";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-foreign-env";
rev = "dddd9213272a0ab848d474d0cbde12ad034e65bc";
sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
};
}];
loginShellInit = ''
set -x WEBKIT_DISABLE_COMPOSITING_MODE 1
set -x EDITOR emacsclient
set -x VISUAL emacsclient
set -x XDG_DATA_HOME $HOME/.local/share
'';
shellAbbrs = {
ls = "exa";
grep = "rg";
ps = "procs";
n = "nix";
nd = "nix develop -c $SHELL";
ns = "nix shell";
nsn = "nix shell nixpkgs#";
nb = "nix build";
nbn = "nix build nixpkgs#";
nf = "nix flake";
ncb nr = "nixos-rebuild --flake ."; nrs = "nixos-rebuild
--flake . switch"; snr = "sudo nixos-rebuild --flake ."; snrs
= "sudo nixos-rebuild --flake . switch"; hm = "home-manager
--flake ."; hms = "home-manager --flake . switch";
vi = "nvim";
vim = "nvim";
wgd = "sudo systemctl stop wg-quick-wg0.service";
wgu = "sudo systemctl start wg-quick-wg0.service";
};
};
};
}

View File

@ -3,6 +3,7 @@
imports = [
./crypto.nix
./design.nix
./espanso.nix
./i3-gaps.nix
./extrafonts.nix
./media.nix

View File

@ -0,0 +1,3 @@
{
services.espanso.enable = true;
}

View File

@ -47,6 +47,11 @@
mode = "770";
owner = "traefik";
};
searx-environmentFile = {
file = ../../secrets/searx-environmentFile.age;
mode = "770";
owner = "searx";
};
};
identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ];
};

View File

@ -2,9 +2,11 @@
imports = [
./container.nix
./gitea.nix
./invidious.nix
./mariadb.nix
./n8n.nix
./postgres.nix
./searx.nix
./traefik.nix
];
}

View File

@ -0,0 +1,7 @@
{
services.invidious = {
enable = true;
port = 3006;
domain = "video.lanakk.com";
};
}

View File

@ -0,0 +1,11 @@
{ pkgs, ... }:
{
services.searx = {
enable = true;
package = pkgs.searxng;
settings = {
server.port = 3004;
server.secret_key = "@SEARX_SECRET_KEY@";
};
};
}

View File

@ -39,6 +39,9 @@
n8n.loadBalancer.servers = [{ url = "http://localhost:5678/"; }];
lanakk_blog.loadBalancer.servers = [{ url = "http://localhost:3002/"; }];
matomo.loadBalancer.servers = [{ url = "http://localhost:3003/"; }];
searx.loadBalancer.servers = [{ url = "http://localhost:3004/"; }];
nextcloud.loadBalancer.servers = [{ url = "http://localhost:3005/"; }];
invidious.loadBalancer.servers = [{ url = "http://localhost:3006/"; }];
};
routers = {
api = {
@ -90,6 +93,24 @@
service = "matomo";
entrypoints = "websecure";
};
searx = {
rule = "Host(`search.lanakk.com`)";
tls = {
certResolver = "godaddy";
domains = "search.lanakk.com";
};
service = "searx";
entrypoints = "websecure";
};
invidious = {
rule = "Host(`video.lanakk.com`)";
tls = {
certResolver = "godaddy";
domains = "video.lanakk.com";
};
service = "invidious";
entrypoints = "websecure";
};
};
};
};

View File

@ -8,4 +8,6 @@ in {
"godaddy-api-key.age".publicKeys = [ root ];
"godaddy-api-secret.age".publicKeys = [ root ];
"searx-environmentFile.age".publicKeys = [ root ];
}

Binary file not shown.