moved nvf to nvf.nix and added nvim
This commit is contained in:
21
nixos/modules/users/nvf.nix
Normal file
21
nixos/modules/users/nvf.nix
Normal file
@@ -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 = "<sha256>";
|
||||||
|
});
|
||||||
|
in{
|
||||||
|
imports = [
|
||||||
|
nvf.nixosModules.nvf
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.nvf = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,20 +1,19 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
|
builtins,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
let
|
programs.neovim = {
|
||||||
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 = "<sha256>";
|
|
||||||
});
|
|
||||||
in{
|
|
||||||
imports = [
|
|
||||||
nvf.nixosModules.nvf
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nvf = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
|
||||||
|
configure = {
|
||||||
|
customRC = ''
|
||||||
|
set number
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user