2023-02-01 20:11:37 +01:00
|
|
|
{
|
2023-02-01 21:59:35 +01:00
|
|
|
description = "A neovim flake with a modular configuration";
|
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
2023-02-07 13:03:21 +01:00
|
|
|
flake-parts,
|
2023-02-01 21:59:35 +01:00
|
|
|
...
|
2023-02-10 18:45:23 +01:00
|
|
|
} @ inputs:
|
2023-02-07 13:03:21 +01:00
|
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
2023-02-28 10:10:55 +01:00
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
/*
|
|
|
|
FIXME: zig compiler - therefore the maximal version - is broken on darwin
|
|
|
|
see https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/zig/0.10.nix#L70
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
*/
|
|
|
|
];
|
2023-02-06 02:14:01 +01:00
|
|
|
|
2023-02-10 18:40:13 +01:00
|
|
|
imports = [
|
|
|
|
# add lib to module args
|
|
|
|
{_module.args = {inherit (nixpkgs) lib;};}
|
|
|
|
./flake/apps.nix
|
|
|
|
./flake/legacyPackages.nix
|
2023-02-10 18:45:23 +01:00
|
|
|
./flake/overlays.nix
|
2023-02-10 18:40:13 +01:00
|
|
|
./flake/packages.nix
|
|
|
|
];
|
|
|
|
|
2023-02-07 13:03:21 +01:00
|
|
|
flake = {
|
|
|
|
lib = {
|
2023-02-10 18:39:31 +01:00
|
|
|
inherit (import ./lib/stdlib-extended.nix nixpkgs.lib) nvim;
|
2023-02-10 18:45:23 +01:00
|
|
|
inherit (import ./extra.nix inputs) neovimConfiguration;
|
2023-02-06 02:14:01 +01:00
|
|
|
};
|
2023-02-06 03:26:52 +01:00
|
|
|
|
2023-02-10 18:40:13 +01:00
|
|
|
nixosModules.default = {
|
2023-03-29 16:43:02 +02:00
|
|
|
home-manager.sharedModules = [./lib/hm-module.nix];
|
2023-02-10 18:40:13 +01:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
inputs.tidalcycles.overlays.default
|
|
|
|
inputs.self.overlays.default
|
|
|
|
];
|
|
|
|
};
|
2023-03-29 15:20:43 +02:00
|
|
|
|
|
|
|
homeManagerModules.default = {
|
2023-03-31 04:34:14 +02:00
|
|
|
imports = [
|
|
|
|
./lib/hm-module.nix
|
|
|
|
];
|
2023-03-29 15:20:43 +02:00
|
|
|
};
|
2023-02-01 21:59:35 +01:00
|
|
|
};
|
|
|
|
|
2023-02-07 13:03:21 +01:00
|
|
|
perSystem = {
|
2023-02-10 18:40:13 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
2023-02-07 13:03:21 +01:00
|
|
|
...
|
|
|
|
}: {
|
2023-02-10 18:40:13 +01:00
|
|
|
devShells.default = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];};
|
2023-02-07 13:03:21 +01:00
|
|
|
};
|
|
|
|
};
|
2023-02-06 19:57:52 +01:00
|
|
|
|
|
|
|
# Flake inputs
|
2023-02-01 20:11:37 +01:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2023-02-07 13:03:21 +01:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2023-02-15 09:46:29 +01:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-02-03 23:45:31 +01:00
|
|
|
|
2023-02-28 08:54:48 +01:00
|
|
|
# TODO: neovim nightly
|
2023-03-04 12:52:18 +01:00
|
|
|
neovim-nightly-overlay = {
|
|
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-02-28 08:54:48 +01:00
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
# For generating documentation website
|
|
|
|
nmd = {
|
|
|
|
url = "gitlab:rycee/nmd";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-28 08:54:48 +01:00
|
|
|
# TODO: get zig from the zig overlay instead of nixpkgs
|
|
|
|
zig.url = "github:mitchellh/zig-overlay";
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
# LSP plugins
|
|
|
|
nvim-lspconfig = {
|
|
|
|
# url = "github:neovim/nvim-lspconfig?ref=v0.1.3";
|
|
|
|
# Use master for nil_ls
|
|
|
|
url = "github:neovim/nvim-lspconfig";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
lspsaga = {
|
|
|
|
url = "github:tami5/lspsaga.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
lspkind = {
|
|
|
|
url = "github:onsails/lspkind-nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
trouble = {
|
|
|
|
url = "github:folke/trouble.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nvim-treesitter-context = {
|
|
|
|
url = "github:lewis6991/nvim-treesitter-context";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nvim-lightbulb = {
|
|
|
|
url = "github:kosayoda/nvim-lightbulb";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
nvim-code-action-menu = {
|
|
|
|
url = "github:weilbith/nvim-code-action-menu";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
lsp-signature = {
|
|
|
|
url = "github:ray-x/lsp_signature.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
null-ls = {
|
|
|
|
url = "github:jose-elias-alvarez/null-ls.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
sqls-nvim = {
|
|
|
|
url = "github:nanotee/sqls.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
rust-tools = {
|
|
|
|
url = "github:simrat39/rust-tools.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Copying/Registers
|
|
|
|
registers = {
|
|
|
|
url = "github:tversteeg/registers.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nvim-neoclip = {
|
|
|
|
url = "github:AckslD/nvim-neoclip.lua";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Telescope
|
|
|
|
telescope = {
|
|
|
|
url = "github:nvim-telescope/telescope.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Langauge server (use master instead of nixpkgs)
|
|
|
|
rnix-lsp.url = "github:nix-community/rnix-lsp";
|
|
|
|
nil = {
|
|
|
|
url = "github:oxalica/nil";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Filetrees
|
|
|
|
nvim-tree-lua = {
|
2023-02-03 08:36:08 +01:00
|
|
|
url = "github:nvim-tree/nvim-tree.lua";
|
2023-02-01 20:11:37 +01:00
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Tablines
|
|
|
|
nvim-bufferline-lua = {
|
|
|
|
url = "github:akinsho/nvim-bufferline.lua?ref=v3.0.1";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Statuslines
|
|
|
|
lualine = {
|
|
|
|
url = "github:hoob3rt/lualine.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Autocompletes
|
|
|
|
nvim-compe = {
|
|
|
|
url = "github:hrsh7th/nvim-compe";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nvim-cmp = {
|
|
|
|
url = "github:hrsh7th/nvim-cmp";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
cmp-buffer = {
|
|
|
|
url = "github:hrsh7th/cmp-buffer";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
cmp-nvim-lsp = {
|
|
|
|
url = "github:hrsh7th/cmp-nvim-lsp";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
cmp-vsnip = {
|
|
|
|
url = "github:hrsh7th/cmp-vsnip";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
cmp-path = {
|
|
|
|
url = "github:hrsh7th/cmp-path";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
cmp-treesitter = {
|
|
|
|
url = "github:ray-x/cmp-treesitter";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# snippets
|
|
|
|
vim-vsnip = {
|
|
|
|
url = "github:hrsh7th/vim-vsnip";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-05 21:57:19 +01:00
|
|
|
# Presence
|
2023-02-18 13:32:43 +01:00
|
|
|
presence-nvim = {
|
2023-02-05 21:57:19 +01:00
|
|
|
url = "github:andweeb/presence.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
# Autopairs
|
|
|
|
nvim-autopairs = {
|
|
|
|
url = "github:windwp/nvim-autopairs";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nvim-ts-autotag = {
|
|
|
|
url = "github:windwp/nvim-ts-autotag";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Commenting
|
|
|
|
kommentary = {
|
|
|
|
url = "github:b3nj5m1n/kommentary";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-16 21:32:46 +01:00
|
|
|
comment-nvim = {
|
|
|
|
url = "github:numToStr/Comment.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
todo-comments = {
|
|
|
|
url = "github:folke/todo-comments.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Buffer tools
|
|
|
|
bufdelete-nvim = {
|
|
|
|
url = "github:famiu/bufdelete.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-03 08:36:08 +01:00
|
|
|
# Dashboard Utilities
|
|
|
|
dashboard-nvim = {
|
|
|
|
url = "github:glepnir/dashboard-nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
alpha-nvim = {
|
|
|
|
url = "github:goolord/alpha-nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-06 06:14:13 +01:00
|
|
|
vim-startify = {
|
|
|
|
url = "github:mhinz/vim-startify";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
# Themes
|
|
|
|
tokyonight = {
|
|
|
|
url = "github:folke/tokyonight.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
onedark = {
|
|
|
|
url = "github:navarasu/onedark.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
catppuccin = {
|
|
|
|
url = "github:catppuccin/nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Rust crates
|
|
|
|
crates-nvim = {
|
|
|
|
url = "github:Saecki/crates.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Visuals
|
|
|
|
nvim-cursorline = {
|
|
|
|
url = "github:yamatsum/nvim-cursorline";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-03 20:53:48 +01:00
|
|
|
|
|
|
|
scrollbar-nvim = {
|
|
|
|
url = "github:petertriho/nvim-scrollbar";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-03 22:20:20 +01:00
|
|
|
cinnamon-nvim = {
|
|
|
|
url = "github:declancm/cinnamon.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-05 14:14:25 +01:00
|
|
|
cellular-automaton = {
|
|
|
|
url = "github:Eandrju/cellular-automaton.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
indent-blankline = {
|
|
|
|
url = "github:lukas-reineke/indent-blankline.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nvim-web-devicons = {
|
|
|
|
url = "github:kyazdani42/nvim-web-devicons";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
gitsigns-nvim = {
|
|
|
|
url = "github:lewis6991/gitsigns.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-27 20:30:12 +01:00
|
|
|
fidget-nvim = {
|
|
|
|
url = "github:j-hui/fidget.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
# Markdown
|
|
|
|
glow-nvim = {
|
|
|
|
url = "github:ellisonleao/glow.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Tidal cycles
|
|
|
|
tidalcycles = {
|
|
|
|
url = "github:mitchmindtree/tidalcycles.nix";
|
|
|
|
inputs.vim-tidal-src.url = "github:tidalcycles/vim-tidal";
|
|
|
|
};
|
|
|
|
|
2023-02-01 21:59:35 +01:00
|
|
|
# Minimap
|
|
|
|
minimap-vim = {
|
|
|
|
url = "github:wfxr/minimap.vim";
|
|
|
|
flake = false;
|
2023-02-01 20:11:37 +01:00
|
|
|
};
|
2023-02-03 22:20:20 +01:00
|
|
|
|
|
|
|
codewindow-nvim = {
|
|
|
|
url = "github:gorbit99/codewindow.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Notifications
|
|
|
|
nvim-notify = {
|
|
|
|
url = "github:rcarriga/nvim-notify";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-03 23:45:31 +01:00
|
|
|
|
|
|
|
# Utilities
|
|
|
|
colorizer = {
|
|
|
|
url = "github:uga-rosa/ccc.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-04 00:12:41 +01:00
|
|
|
|
2023-03-01 10:08:24 +01:00
|
|
|
diffview-nvim = {
|
|
|
|
url = "github:sindrets/diffview.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-04 00:12:41 +01:00
|
|
|
venn-nvim = {
|
|
|
|
url = "github:jbyuki/venn.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-05 21:57:19 +01:00
|
|
|
|
|
|
|
icon-picker-nvim = {
|
|
|
|
url = "github:ziontee113/icon-picker.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-06 06:14:13 +01:00
|
|
|
which-key = {
|
|
|
|
url = "github:folke/which-key.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
cheatsheet-nvim = {
|
|
|
|
url = "github:sudormrfbin/cheatsheet.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
gesture-nvim = {
|
|
|
|
url = "github:notomo/gesture.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-05 23:09:12 +01:00
|
|
|
# Note-taking
|
|
|
|
|
|
|
|
obsidian-nvim = {
|
|
|
|
url = "github:epwalsh/obsidian.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
orgmode-nvim = {
|
|
|
|
url = "github:nvim-orgmode/orgmode";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-16 21:57:56 +01:00
|
|
|
mind-nvim = {
|
|
|
|
url = "github:phaazon/mind.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-06 00:44:38 +01:00
|
|
|
# Terminal
|
|
|
|
toggleterm-nvim = {
|
|
|
|
url = "github:akinsho/toggleterm.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-06 02:14:01 +01:00
|
|
|
# UI
|
2023-02-06 01:55:19 +01:00
|
|
|
noice-nvim = {
|
|
|
|
url = "github:folke/noice.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-06 02:14:01 +01:00
|
|
|
# Assistant
|
|
|
|
copilot-lua = {
|
|
|
|
url = "github:zbirenbaum/copilot.lua";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-06 03:26:52 +01:00
|
|
|
# Session management
|
|
|
|
nvim-session-manager = {
|
|
|
|
url = "github:Shatur/neovim-session-manager";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-02-05 21:57:19 +01:00
|
|
|
# Dependencies
|
|
|
|
plenary-nvim = {
|
|
|
|
# (required by crates-nvim)
|
|
|
|
url = "github:nvim-lua/plenary.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
dressing-nvim = {
|
|
|
|
# (required by icon-picker-nvim)
|
|
|
|
url = "github:stevearc/dressing.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-05 23:09:12 +01:00
|
|
|
|
|
|
|
vim-markdown = {
|
|
|
|
# (required by obsidian-nvim)
|
|
|
|
url = "github:preservim/vim-markdown";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
tabular = {
|
|
|
|
# (required by vim-markdown)
|
|
|
|
url = "github:godlygeek/tabular";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-06 01:55:19 +01:00
|
|
|
|
|
|
|
nui-nvim = {
|
2023-02-06 06:14:13 +01:00
|
|
|
# (required by noice.nvim)
|
2023-02-06 01:55:19 +01:00
|
|
|
url = "github:MunifTanjim/nui.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-01 21:59:35 +01:00
|
|
|
};
|
2023-02-01 20:11:37 +01:00
|
|
|
}
|