From ec19103a81b00d163d9ae9abe27dddb5284c438e Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Wed, 22 Oct 2025 13:23:50 +0200 Subject: [PATCH 1/3] fix: nb change open mapping for the terminal --- hosts/nb/modules/development/nvim/config/terminal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/nb/modules/development/nvim/config/terminal.lua b/hosts/nb/modules/development/nvim/config/terminal.lua index 41ab650..2321ffd 100644 --- a/hosts/nb/modules/development/nvim/config/terminal.lua +++ b/hosts/nb/modules/development/nvim/config/terminal.lua @@ -3,7 +3,7 @@ local config = { on_config_done = nil, -- size can be a number or function which is passed the current terminal size = 60, - open_mapping = [[]], + open_mapping = [[]], hide_numbers = true, -- hide the number column in toggleterm buffers shade_filetypes = {}, shade_terminals = true, From fc9ef6b9ffec82c9bbf387cb052e3a660e094ba6 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Wed, 22 Oct 2025 14:29:53 +0200 Subject: [PATCH 2/3] feat: nb add sway launcher cleanup --- hosts/nb/modules/desktop/default.nix | 1 + hosts/nb/modules/sway/launcher-cleanup.nix | 40 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 hosts/nb/modules/sway/launcher-cleanup.nix diff --git a/hosts/nb/modules/desktop/default.nix b/hosts/nb/modules/desktop/default.nix index d1e2372..923550a 100644 --- a/hosts/nb/modules/desktop/default.nix +++ b/hosts/nb/modules/desktop/default.nix @@ -3,6 +3,7 @@ let in { imports = [ ../sway/sway.nix + ../sway/launcher-cleanup.nix ./social.nix ./signal-work.nix ./thunderbird.nix diff --git a/hosts/nb/modules/sway/launcher-cleanup.nix b/hosts/nb/modules/sway/launcher-cleanup.nix new file mode 100644 index 0000000..ccb5eb6 --- /dev/null +++ b/hosts/nb/modules/sway/launcher-cleanup.nix @@ -0,0 +1,40 @@ +{ config, pkgs, ... }: +let + cleanup-launcher = pkgs.writeShellScriptBin "cleanup-sway-launcher" '' + HIST_FILE="''${XDG_CACHE_HOME:-$HOME/.cache}/.sway-launcher-desktop-wrapped-history.txt" + + # Delete the history file to clear duplicates + if [[ -f "$HIST_FILE" ]]; then + rm "$HIST_FILE" + echo "Cleared sway-launcher history at $HIST_FILE" + fi + + # Run purge to clean up any broken entries + ${pkgs.sway-launcher-desktop}/bin/sway-launcher-desktop purge 2>/dev/null || true + + echo "Sway launcher cleanup completed" + ''; +in { + environment.systemPackages = [ cleanup-launcher ]; + + systemd.user.timers = { + cleanup-sway-launcher = { + description = "Clean up sway-launcher-desktop cache"; + timerConfig = { + OnCalendar = "Sun 03:00"; + Persistent = true; + }; + wantedBy = [ "timers.target" ]; + }; + }; + + systemd.user.services = { + cleanup-sway-launcher = { + description = "Clean up sway-launcher-desktop cache and remove broken entries"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${cleanup-launcher}/bin/cleanup-sway-launcher"; + }; + }; + }; +} From 6be832b012a92ee94f5612ead326207dfef40dc9 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Wed, 22 Oct 2025 14:30:35 +0200 Subject: [PATCH 3/3] feat: nb add ssh config for whoidentifies.me --- hosts/nb/users/dominik.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/nb/users/dominik.nix b/hosts/nb/users/dominik.nix index 6387807..adf061a 100644 --- a/hosts/nb/users/dominik.nix +++ b/hosts/nb/users/dominik.nix @@ -665,6 +665,10 @@ in user = "root"; identityFile = "~/.ssh/epicenter.id_rsa"; }; + "*.whoidentifies.me" = { + user = "root"; + identityFile = "~/.ssh/epicenter_id_ed25519"; + }; "*.akvorrat.at" = { user = "dominik"; setEnv = {