From 0778266e4499ba0bf402a726a07fbd58b11ff4f8 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 14 Jul 2023 21:37:21 +0100 Subject: [PATCH] README: change pta2002 to nix-community --- README.md | 12 ++++++------ templates/simple/flake.nix | 27 +++++++++++++++------------ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 6fdad5fe..b1736d6a 100644 --- a/README.md +++ b/README.md @@ -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! ## 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 @@ -41,7 +41,7 @@ To install it, edit your home-manager (or NixOS) configuration: { pkgs, lib, ... }: let nixvim = import (builtins.fetchGit { - url = "https://github.com/pta2002/nixvim"; + url = "https://github.com/nix-community/nixvim"; }); in { @@ -79,7 +79,7 @@ flakes, just add the nixvim input: ```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): ``` -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 @@ -122,7 +122,7 @@ can use the following: { 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"; outputs = { @@ -196,7 +196,7 @@ be. # Documentation 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 After you have installed NixVim, you will no doubt want to enable some plugins. diff --git a/templates/simple/flake.nix b/templates/simple/flake.nix index 69729aec..51ef9b8a 100644 --- a/templates/simple/flake.nix +++ b/templates/simple/flake.nix @@ -2,27 +2,30 @@ description = "A nixvim configuration"; inputs = { - nixvim.url = "github:pta2002/nixvim"; + nixvim.url = "github:nix-community/nixvim"; flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { - nixpkgs, - nixvim, - flake-utils, - ... - } @ inputs: let - config = import ./config; # import the module directly - in - flake-utils.lib.eachDefaultSystem (system: let + outputs = + { nixpkgs + , nixvim + , flake-utils + , ... + } @ inputs: + let + config = import ./config; # import the module directly + in + flake-utils.lib.eachDefaultSystem (system: + let nixvimLib = nixvim.lib.${system}; - pkgs = import nixpkgs {inherit system;}; + pkgs = import nixpkgs { inherit system; }; nixvim' = nixvim.legacyPackages.${system}; nvim = nixvim'.makeNixvimWithModule { inherit pkgs; module = config; }; - in { + in + { checks = { # Run `nix flake check .` to verify that your config is not broken default = nixvimLib.check.mkTestDerivationFromNvim {