README: change pta2002 to nix-community

This commit is contained in:
Pedro Alves 2023-07-14 21:37:21 +01:00
parent 22306af9aa
commit 0778266e44
2 changed files with 21 additions and 18 deletions

View file

@ -23,7 +23,7 @@ When we do this, lightline will be set up to a sensible default, and will use
gruvbox as the colorscheme, no extra configuration required! gruvbox as the colorscheme, no extra configuration required!
## Support/Questions ## Support/Questions
If you have any question, please use the [discussions page](https://github.com/pta2002/nixvim/discussions/categories/q-a)! Alternatively, join the Matrix channel at [#nixvim:matrix.org](https://matrix.to/#/#nixvim:matrix.org)! If you have any question, please use the [discussions page](https://github.com/nix-community/nixvim/discussions/categories/q-a)! Alternatively, join the Matrix channel at [#nixvim:matrix.org](https://matrix.to/#/#nixvim:matrix.org)!
## Installation ## Installation
@ -41,7 +41,7 @@ To install it, edit your home-manager (or NixOS) configuration:
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
nixvim = import (builtins.fetchGit { nixvim = import (builtins.fetchGit {
url = "https://github.com/pta2002/nixvim"; url = "https://github.com/nix-community/nixvim";
}); });
in in
{ {
@ -79,7 +79,7 @@ flakes, just add the nixvim input:
```nix ```nix
{ {
# ... # ...
inputs.nixvim.url = github:pta2002/nixvim; inputs.nixvim.url = "github:nix-community/nixvim";
} }
``` ```
@ -109,7 +109,7 @@ If you want to use it standalone, you can use the `makeNixvim` function:
To get started with a standalone configuration you can use the template by running the following command in an empty directory (recommended): To get started with a standalone configuration you can use the template by running the following command in an empty directory (recommended):
``` ```
nix flake init --template github:pta2002/nixvim nix flake init --template github:nix-community/nixvim
``` ```
Alternatively if you want a minimal flake to allow building a custom neovim you Alternatively if you want a minimal flake to allow building a custom neovim you
@ -122,7 +122,7 @@ can use the following:
{ {
description = "A very basic flake"; description = "A very basic flake";
inputs.nixvim.url = "github:pta2002/nixvim"; inputs.nixvim.url = "github:nix-community/nixvim";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { outputs = {
@ -196,7 +196,7 @@ be.
# Documentation # Documentation
Documentation is available on this project's GitHub Pages page: Documentation is available on this project's GitHub Pages page:
[https://pta2002.github.io/nixvim](https://pta2002.github.io/nixvim) [https://nix-community.github.io/nixvim](https://nix-community.github.io/nixvim)
## Plugins ## Plugins
After you have installed NixVim, you will no doubt want to enable some plugins. After you have installed NixVim, you will no doubt want to enable some plugins.

View file

@ -2,19 +2,21 @@
description = "A nixvim configuration"; description = "A nixvim configuration";
inputs = { inputs = {
nixvim.url = "github:pta2002/nixvim"; nixvim.url = "github:nix-community/nixvim";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { outputs =
nixpkgs, { nixpkgs
nixvim, , nixvim
flake-utils, , flake-utils
... , ...
} @ inputs: let } @ inputs:
let
config = import ./config; # import the module directly config = import ./config; # import the module directly
in in
flake-utils.lib.eachDefaultSystem (system: let flake-utils.lib.eachDefaultSystem (system:
let
nixvimLib = nixvim.lib.${system}; nixvimLib = nixvim.lib.${system};
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
nixvim' = nixvim.legacyPackages.${system}; nixvim' = nixvim.legacyPackages.${system};
@ -22,7 +24,8 @@
inherit pkgs; inherit pkgs;
module = config; module = config;
}; };
in { in
{
checks = { checks = {
# Run `nix flake check .` to verify that your config is not broken # Run `nix flake check .` to verify that your config is not broken
default = nixvimLib.check.mkTestDerivationFromNvim { default = nixvimLib.check.mkTestDerivationFromNvim {