From 237bae6b4d9ceae6df6dd71e3eefc192ff7892f5 Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Sat, 21 Jun 2025 15:21:31 +0200 Subject: [PATCH] Add nixvim --- home-manager/home.nix | 6 +----- modules/home-manager/default.nix | 1 + modules/home-manager/nixvim.nix | 8 ++++++++ 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 modules/home-manager/nixvim.nix diff --git a/home-manager/home.nix b/home-manager/home.nix index 1074f6c..6babe0d 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -11,11 +11,7 @@ imports = [ outputs.homeManagerModules - # Or modules exported from other flakes (such as nix-colors): - # inputs.nix-colors.homeManagerModules.default - - # You can also split up your configuration and import pieces of it here: - # ./nvim.nix + inputs.nixvim.homeModules.nixvim ]; nixpkgs = { diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index ac9b405..24594f1 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -2,5 +2,6 @@ imports = [ ./git.nix ./fish.nix + ./nixvim.nix ]; } diff --git a/modules/home-manager/nixvim.nix b/modules/home-manager/nixvim.nix new file mode 100644 index 0000000..0525a89 --- /dev/null +++ b/modules/home-manager/nixvim.nix @@ -0,0 +1,8 @@ +{ ... }: { + programs.nixvim = { + enable = true; + viAlias = true; + vimAlias = true; + env = { EDITOR = "nvim"; }; + }; +}