Skip to content

Instantly share code, notes, and snippets.

@GaetanLepage
Created April 1, 2024 17:27
Show Gist options
  • Save GaetanLepage/2fafec00c25df243d3c94ece5b3be7a0 to your computer and use it in GitHub Desktop.
Save GaetanLepage/2fafec00c25df243d3c94ece5b3be7a0 to your computer and use it in GitHub Desktop.
{
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