docs: clarify nixos and home-manager usage

This commit is contained in:
NotAShelf 2023-04-02 19:58:37 +03:00
parent 7ee66ea376
commit f7e860d6e5
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 10 additions and 3 deletions

View file

@ -18,7 +18,10 @@ The following is an example of a barebones vim configuration with the default th
[source,nix] [source,nix]
---- ----
{ {
inputs.neovim-flake.url = "github:jordanisaacs/neovim-flake"; inputs.neovim-flake = {
url = "github:notashelf/neovim-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {nixpkgs, neovim-flake, ...}: let outputs = {nixpkgs, neovim-flake, ...}: let
system = "x86_64-linux"; system = "x86_64-linux";
@ -27,7 +30,9 @@ The following is an example of a barebones vim configuration with the default th
# Add any custom options (and feel free to upstream them!) # Add any custom options (and feel free to upstream them!)
# options = ... # options = ...
config.vim.theme.enable = true; config.vim = {
theme.enable = true;
};
}; };
customNeovim = neovim-flake.lib.neovimConfiguration { customNeovim = neovim-flake.lib.neovimConfiguration {

View file

@ -19,7 +19,7 @@ Followed by importing the HM module.
[source,nix] [source,nix]
---- ----
{ {
imports = [ neovim-flake.nixosModules.default ]; imports = [ neovim-flake.homeManagerModules.default ];
} }
---- ----
@ -29,7 +29,9 @@ Then we should be able to use the given module. E.g.
---- ----
{ {
programs.neovim-flake = { programs.neovim-flake = {
enable = true; enable = true;
# your settings need to go into the settings attrset
settings = { settings = {
vim.viAlias = false; vim.viAlias = false;
vim.vimAlias = true; vim.vimAlias = true;