maybe don't clobber sessionvariables

This commit is contained in:
Sam W 2024-09-28 20:03:34 +01:00
parent c0978d2186
commit 665403ee0f
2 changed files with 3 additions and 4 deletions

View File

@ -6,9 +6,8 @@
in {
home.packages = packages.all;
home.sessionVariables = {
"PATH" = "$HOME/.local/bin:$PATH";
"EDITOR" = "vim";
"WORDCHARS" = "\${WORDCHARS//[\\/.=]/}"; # ctrl-w on paths without make angery
EDITOR = "vim"; # is overriden to nvim in vim.nix if needed
WORDCHARS = "\${WORDCHARS//[\\/.=]/}"; # ctrl-w on paths without make angery
};
/*
# For some reason this doesn't play nice when using home manager config from inside

View File

@ -5,7 +5,7 @@
lib,
...
}: {
home.sessionVariables = lib.mkForce {"EDITOR" = "nvim";};
home.sessionVariables.EDITOR = lib.mkForce "nvim";
home.packages = with pkgs; [ripgrep];
programs.neovim = {
enable = true;