From 102ec54f82a6157f1d27616d0210193982e3c79b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 25 Nov 2024 20:17:26 +0800 Subject: [PATCH] security(EDITOR): by default, do not load neovim's user config --- home/base/tui/password-store/default.nix | 2 +- modules/darwin/apps.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/home/base/tui/password-store/default.nix b/home/base/tui/password-store/default.nix index a40c878d0..6a7126e90 100644 --- a/home/base/tui/password-store/default.nix +++ b/home/base/tui/password-store/default.nix @@ -33,7 +33,7 @@ in { "C2A313F98166C942" # S - Ryan Yin (For pass & ssh only) ]; PASSWORD_STORE_CLIP_TIME = "60"; - PASSWORD_STORE_GENERATED_LENGTH = "15"; + PASSWORD_STORE_GENERATED_LENGTH = "12"; PASSWORD_STORE_ENABLE_EXTENSIONS = "true"; }; }; diff --git a/modules/darwin/apps.nix b/modules/darwin/apps.nix index c0cdc0e67..6fff30683 100644 --- a/modules/darwin/apps.nix +++ b/modules/darwin/apps.nix @@ -73,7 +73,8 @@ in { # Fix https://github.com/LnL7/nix-darwin/wiki/Terminfo-issues TERMINFO_DIRS = map (path: path + "/share/terminfo") config.environment.profiles ++ ["/usr/share/terminfo"]; - EDITOR = "nvim"; + # for security reasons, do not load neovim's user config + EDITOR = "nvim --clean"; } # Set variables for you to manually install homebrew packages. // homebrew_mirror_env;