From bba29fa1ea28859a938df24dfe1c577217562ab5 Mon Sep 17 00:00:00 2001 From: cy Date: Fri, 28 Feb 2025 02:25:51 -0500 Subject: [PATCH] make vscode nicer; install rust-src; change btrbk stuff --- home/codium.nix | 19 ++++++++++++++++++- home/yt/ytnix.nix | 4 +++- hosts/ytnix/default.nix | 6 +++--- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/home/codium.nix b/home/codium.nix index 945087f..9d9b479 100644 --- a/home/codium.nix +++ b/home/codium.nix @@ -29,7 +29,7 @@ "editor.fontSize" = 15; "window.zoomLevel" = 0.5; - # vim mode settings + # vim stuff "vim.leader" = ","; "vim.normalModeKeyBindings" = [ { @@ -65,6 +65,20 @@ "before" = [ "" "f" "t"]; "commands" = [ "find-it-faster.findWithinFilesWithType"]; } + # "gd" for definitions is by default + { + "before" = [ "g" "r" ]; + "commands" = [ "editor.action.goToReferences" ]; + } + # the default is weird when you need to go back within a file + { + "before" = [ "C-o" ]; + "commands" = [ "workbench.action.navigateBack" ]; + } + { + "before" = [ "C-i" ]; + "commands" = [ "workbench.action.navigateForward" ]; + } ]; "vim.insertModeKeyBindings" = [ { @@ -103,6 +117,9 @@ # don't let the workbench handle terminal keys like ctrl+n and friends "terminal.integrated.sendKeybindingsToShell" = true; "terminal.integrated.allowChords" = false; + + "security.promptForLocalFileProtocolHandling" = false; + "security.promptForRemoteFileProtocolHandling" = false; }; }; }; diff --git a/home/yt/ytnix.nix b/home/yt/ytnix.nix index 67625f6..e9b8738 100644 --- a/home/yt/ytnix.nix +++ b/home/yt/ytnix.nix @@ -54,7 +54,9 @@ yarn rclone go - (rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) + (rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override { + extensions = [ "rust-src" ]; + })) pwgen lua-language-server gnumake diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index 296335c..42d9217 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -232,9 +232,9 @@ snapshotOnly = true; settings = { snapshot_preserve_min = "latest"; - target_preserve = "*d"; - target_preserve_min = "no"; - target = "/mnt/external/btr_backup/ytnix"; + target_preserve = "30d"; + target_preserve_min = "2d"; + target = "/mnt/target/btr_backup/ytnix"; stream_compress = "zstd"; stream_compress_level = "8"; snapshot_dir = "/snapshots";