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

View File

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