Created
April 1, 2024 17:27
-
-
Save GaetanLepage/2fafec00c25df243d3c94ece5b3be7a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | |
nixvim = { | |
url = "/home/gaetan/perso/nix/nixvim/nixvim"; # TODO replace with the path to your nixvim local clone | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
}; | |
outputs = { | |
self, | |
nixpkgs, | |
nixvim, | |
}: let | |
system = "x86_64-linux"; | |
pkgs = import nixpkgs { | |
inherit system; | |
config.allowUnfree = true; | |
}; | |
nixvim' = nixvim.legacyPackages.${system}; | |
nvim = | |
nixvim'.makeNixvimWithModule | |
{ | |
inherit pkgs; | |
module = {pkgs, ...}: { | |
config = { | |
plugins.telescope.enable = true; | |
}; | |
}; | |
}; | |
in { | |
packages.${system}.default = nvim; | |
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment