diff --git a/hosts/home.nix b/hosts/home.nix index d94936d..0773cf3 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -1,7 +1,6 @@ { config, pkgs, user, ... }: let - editor = "vim"; moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); nixpkgs = import { overlays = [ moz_overlay ]; @@ -11,8 +10,6 @@ let ); in { - - xdg.mimeApps.associations.added."text/plain" = "vim"; # Let Home Manager install and manage itself. programs.home-manager.enable = true; @@ -76,7 +73,6 @@ in ]; sessionVariables = { - EDITOR = editor; NIX_SHELL_PRESERVE_PROMPT = 1; }; }; diff --git a/modules/vim.nix b/modules/vim.nix index 14abeaf..eff415e 100644 --- a/modules/vim.nix +++ b/modules/vim.nix @@ -31,6 +31,7 @@ in vim-javascript ]; + defaultEditor = true; extraConfig = builtins.readFile ../rsrcs/.vimrc; };