-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
34 lines (30 loc) · 954 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "IogaMaster's Neovim Configuration";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
outputs = {nixpkgs, ...}: let
inherit (nixpkgs) lib;
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in rec {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
alejandra
stylua
];
};
});
packages = forAllSystems (pkgs: rec {
neovim = pkgs.callPackage ./nix/pkgs/neovim.nix {bundled = false;};
neovim-bundled = pkgs.callPackage ./nix/pkgs/neovim.nix {};
default = neovim-bundled;
});
overlays.default = final: prev: {
neovim = final.callPackage ./nix/pkgs/neovim.nix {bundled = false;};
neovim-bundled = final.callPackage ./nix/pkgs/neovim.nix {};
};
};
}