33 lines
846 B
Nix
33 lines
846 B
Nix
{
|
|
description = "My neovim nvf configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
nvf.url = "github:notashelf/nvf";
|
|
};
|
|
|
|
outputs = {nixpkgs, ...} @ inputs: let
|
|
supportedSystems = ["aarch64-linux" "i686-linux" "x86_64-linux"];
|
|
|
|
# Function to generate a set based on supported systems:
|
|
forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
# Attribute set of nixpkgs for each system:
|
|
nixpkgsFor =
|
|
forAllSystems (system: import inputs.nixpkgs {inherit system;});
|
|
in {
|
|
packages = forAllSystems (system: let
|
|
pkgs = nixpkgsFor.${system};
|
|
in {
|
|
nvf =
|
|
(inputs.nvf.lib.neovimConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
modules = [
|
|
./nvf.nix
|
|
];
|
|
})
|
|
.neovim;
|
|
});
|
|
};
|
|
}
|