From d6e453664d15c04aa8698607cb653de2d1c28684 Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Sat, 15 Feb 2025 19:22:51 +0100 Subject: [PATCH] fix ds9 immich port --- hm-modules/helix/default.nix | 76 +++++++++++++++++++++++++++++++++++- hosts/ds9/default.nix | 2 +- hosts/theseus/default.nix | 1 + 3 files changed, 77 insertions(+), 2 deletions(-) diff --git a/hm-modules/helix/default.nix b/hm-modules/helix/default.nix index f6a19ca4..04a3112e 100644 --- a/hm-modules/helix/default.nix +++ b/hm-modules/helix/default.nix @@ -30,8 +30,82 @@ in theme = "gruvbox_dark_hard"; editor = { line-number = "relative"; - lsp.display-messages = true; + bufferline = "multiple"; + color-modes = true; + cursorline = true; + auto-format = true; + end-of-line-diagnostics = "hint"; + inline-diagnostics = { + cursor-line = "hint"; + }; + lsp = { + display-messages = true; + display-inlay-hints = true; + }; + popup-border = "popup"; + statusline.left = [ + "mode" + "spinner" + "spacer" + "version-control" + "file-name" + "diagnostics" + "read-only-indicator" + "file-modification-indicator" + "spacer" + ]; + + statusline.right = [ + "workspace-diagnostics" + "register" + "position" + "selections" + "file-encoding" + "file-type" + ]; + idle-timeout = 50; + completion-timeout = 100; + indent-guides = { + render = true; + character = "│"; + skip-levels = 1; + }; + soft-wrap = { + enable = true; + }; + whitespace = { + render = { + space = "none"; + tab = "all"; + newline = "none"; + }; + characters = { + nbsp = "·"; + tab = "→"; + }; + }; + }; + keys = { + normal = { + space."=" = ":fmt"; + + # smart tab++ + tab = "move_parent_node_end"; + S-tab = "move_parent_node_start"; + }; + insert = { + # smart tab ++ + S-tab = "move_parent_node_start"; + }; + select = { + # smart tab++ + tab = "extend_parent_node_end"; + S-tab = "extend_parent_node_start"; + }; + }; + + }; languages = { language-server.pyright.config.python.analysis.typeCheckingMode = "basic"; diff --git a/hosts/ds9/default.nix b/hosts/ds9/default.nix index 9c0fbabd..9beb70af 100644 --- a/hosts/ds9/default.nix +++ b/hosts/ds9/default.nix @@ -183,7 +183,7 @@ in bind [fd7a:115c:a1e0:ab12:4843:cd96:6253:6019] @immich host immich.hailsatan.eu handle @immich { - import podmanRedir http://immich-server:3001 + import podmanRedir http://immich-server:2283 } @cd host cd.hailsatan.eu handle @cd { diff --git a/hosts/theseus/default.nix b/hosts/theseus/default.nix index 53973bb5..f7e05216 100644 --- a/hosts/theseus/default.nix +++ b/hosts/theseus/default.nix @@ -27,6 +27,7 @@ hardware.keyboard.zsa.enable = true; + services.tailscale.useRoutingFeatures = lib.mkForce "client"; xdg.portal = { enable = true;