From 9e61c71972da1eb7e6a0c62b6a94b093b75a0cb9 Mon Sep 17 00:00:00 2001 From: cerberus Date: Fri, 21 Nov 2025 18:29:49 +0100 Subject: [PATCH] moved nvf to nvf.nix and added nvim --- nixos/modules/users/nvf.nix | 21 +++++++++++++++++++++ nixos/modules/users/nvim.nix | 25 ++++++++++++------------- 2 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 nixos/modules/users/nvf.nix diff --git a/nixos/modules/users/nvf.nix b/nixos/modules/users/nvf.nix new file mode 100644 index 0000000..23d1f2b --- /dev/null +++ b/nixos/modules/users/nvf.nix @@ -0,0 +1,21 @@ +{ + pkgs, + config, + builtins, + ... +}: +let + nvf = import (builtins.fetchTarball { + url = "https://github.com/notashelf/nvf/archive/v0.8.tar.gz"; + # Optionally, you can add 'sha256' for verification and caching + # sha256 = ""; + }); +in{ + imports = [ + nvf.nixosModules.nvf + ]; + + programs.nvf = { + enable = true; + }; +} diff --git a/nixos/modules/users/nvim.nix b/nixos/modules/users/nvim.nix index e3af92c..dfea6cc 100644 --- a/nixos/modules/users/nvim.nix +++ b/nixos/modules/users/nvim.nix @@ -1,20 +1,19 @@ { pkgs, config, + builtins, ... -}: -let - nvf = import (builtins.fetchTarball { - url = "https://github.com/notashelf/nvf/archive/v0.8.tar.gz"; - # Optionally, you can add 'sha256' for verification and caching - # sha256 = ""; - }); -in{ - imports = [ - nvf.nixosModules.nvf - ]; - - programs.nvf = { +}: { + programs.neovim = { enable = true; + defaultEditor = true; + viAlias = true; + vimAlias = true; + + configure = { + customRC = '' + set number + ''; + }; }; }