67 lines
2 KiB
Nix
67 lines
2 KiB
Nix
{
|
|
# https://github.com/redyf/Neve/blob/main/flake.nix
|
|
description = "nixvim-for-share";
|
|
|
|
inputs = {
|
|
# https://github.com/nix-community/nixvim/issues/1859
|
|
# use nixos-24.05 branch to get rid of "error: attribute 'cmp-ai' missing"
|
|
# nixvim.url = "github:nix-community/nixvim/main";
|
|
|
|
nixvim = {
|
|
# url = "github:nix-community/nixvim/nixos-25.05";
|
|
url = "github:nix-community/nixvim/main";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
inputs.systems.follows = "my_systems";
|
|
};
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "my_systems";
|
|
};
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
# nixpkgs.follows = "nixvim/nixpkgs";
|
|
|
|
# https://github.com/nvim-neorg/nixpkgs-neorg-overlay
|
|
# https://github.com/nix-community/nixvim/issues/1395
|
|
# remove this and use nixos-25.05 to accelerate evaluation time
|
|
#
|
|
# https://haseebmajid.dev/posts/2024-04-21-til-how-to-fix-neorg-metadata-treesitter-issues-with-nixvim/
|
|
# no need to use neorg-overlay after adding treesitter in ./config/plugins/neorg.nix
|
|
# neorg-overlay = {
|
|
# url = "github:nvim-neorg/nixpkgs-neorg-overlay";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
# inputs.flake-utils.follows = "flake-utils";
|
|
# };
|
|
devshell = {
|
|
url = "github:numtide/devshell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
my_systems = {
|
|
url = "path:./systems.nix";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
self,
|
|
flake-parts,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [
|
|
"i686-linux"
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
imports = [
|
|
./flake-modules/formatter.nix
|
|
./flake-modules/nixvim.nix
|
|
];
|
|
};
|
|
}
|