From 137a2e110697f4ecff63876a8cb9b72e1007e252 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 28 Aug 2024 00:04:10 +0200 Subject: [PATCH] set neovim as default editor --- flake.nix | 6 ++---- home/base/programs/nixvim/core.nix | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index b0d03f6..ab7371c 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,7 @@ description = "nezia's nixos configuration"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixvim = { url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; @@ -23,10 +24,7 @@ url = "github:danth/stylix"; inputs.nixpkgs.follows = "nixpkgs"; }; - nixos-hardware = { - url = "github:NixOS/nixos-hardware"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + nixos-hardware.url = "github:NixOS/nixos-hardware"; }; outputs = { nixpkgs, nixos-hardware, home-manager, nixvim, sops-nix, stylix, ... }@inputs: diff --git a/home/base/programs/nixvim/core.nix b/home/base/programs/nixvim/core.nix index 87b532b..99e61d0 100644 --- a/home/base/programs/nixvim/core.nix +++ b/home/base/programs/nixvim/core.nix @@ -3,6 +3,7 @@ { programs.nixvim = { enable = true; + defaultEditor = true; viAlias = true; vimAlias = true;