From 995b085d82d3b83e6500ed22d699466048617412 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Thu, 28 Nov 2024 18:23:37 -0600 Subject: [PATCH] improve baseline module --- home/modules/baseline.nix | 36 ++++++++++++------- home/modules/neovim.nix | 3 ++ .../fabian@posixlycorrect/default.nix | 5 --- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/home/modules/baseline.nix b/home/modules/baseline.nix index fd49b9b..b6d0d20 100644 --- a/home/modules/baseline.nix +++ b/home/modules/baseline.nix @@ -13,18 +13,28 @@ in { config = mkIf cfg.enable { xdg.enable = true; - home.packages = with pkgs; [ - calc - file - git - htop - killall - man-pages - man-pages-posix - tree - units - unzip - zip - ]; + home = { + packages = with pkgs; [ + calc + file + git + htop + killall + man-pages + man-pages-posix + tree + units + unzip + vim + zip + ]; + }; + keyboard = { + layout = "us"; + variant = "altgr-intl"; + }; + sessionVariables = { + "EDITOR" = mkDefault "vim"; + }; }; } diff --git a/home/modules/neovim.nix b/home/modules/neovim.nix index 78dbc6f..b909a34 100644 --- a/home/modules/neovim.nix +++ b/home/modules/neovim.nix @@ -44,5 +44,8 @@ in { vim-multiple-cursors ]; }; + home.sessionVariables = { + "EDITOR" = "neovim"; + }; }; } diff --git a/home/platforms/fabian@posixlycorrect/default.nix b/home/platforms/fabian@posixlycorrect/default.nix index 03f82b4..6d16ec3 100644 --- a/home/platforms/fabian@posixlycorrect/default.nix +++ b/home/platforms/fabian@posixlycorrect/default.nix @@ -48,13 +48,8 @@ username = "fabian"; homeDirectory = "/home/fabian"; sessionVariables = { - "EDITOR" = "nvim"; "TERMINAL" = "kitty"; }; - keyboard = { - layout = "us"; - variant = "altgr-intl"; - }; }; programs.home-manager.enable = true; }