Files
nvim/flake.nix

46 lines
1.0 KiB
Nix
Raw Normal View History

{
description = "My development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
go-grip = {
url = "github:guz013/go-grip";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
...
2024-12-06 20:18:37 -03:00
} @ inputs: let
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
2024-12-06 20:18:37 -03:00
overlays = [
inputs.neovim-nightly-overlay.overlays.default
];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system overlays;};
in
f system pkgs);
in {
packages = forAllSystems (system: pkgs: {
neovim = pkgs.callPackage ./neovim.nix {inherit inputs;};
default = self.packages.${system}.neovim;
});
2024-12-08 19:39:38 -03:00
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
stylua
];
};
});
};
}