mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
services: add jellyfin, archivebox, custom dns
- `internal.thegeneralist01.com` and `archive.thegeneralist01.com` are not public. I have Split DNS enabled on them (in Tailscale), with the IP of the DNS server set to a private Tailscale IP of my home server; - CoreDNS (also on my home server) is used to resolve the two private domains' IPs to the home server itself; - nginx only listens to its machine's (home server's) Tailscale IP; - Therefore, all of it is hermetic!
This commit is contained in:
parent
8724801def
commit
572647d7c4
9 changed files with 194 additions and 11 deletions
|
|
@ -46,7 +46,6 @@ autocmd('LspAttach', {
|
|||
vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts("View code actions"))
|
||||
vim.keymap.set("i", "<C-]>", function() vim.lsp.buf.code_action() end, opts("View code actions"))
|
||||
vim.keymap.set("n", "<leader>va", function()
|
||||
-- TODO: this
|
||||
local params = vim.lsp.util.make_range_params()
|
||||
params.context = { diagnostics = vim.lsp.diagnostic.get_line_diagnostics() }
|
||||
local result, err = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, 1000)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (lib) concatStringsSep;
|
||||
inherit (lib) mkIf concatStringsSep;
|
||||
in {
|
||||
# TODO: add fallback & check other options
|
||||
services.resolved = {
|
||||
services.resolved = mkIf (!config.isServer) {
|
||||
enable = true;
|
||||
|
||||
extraConfig = config.dnsServers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue