Nvim : Load packages from nix.

This commit is contained in:
Dmitry Voronin 2024-02-25 05:49:40 +03:00
parent d0c4d0333d
commit 09c4eaa5c9
3 changed files with 407 additions and 4 deletions

View file

@ -66,11 +66,334 @@
"type": "github"
}
},
"nvimAlign": {
"flake": false,
"locked": {
"lastModified": 1707650661,
"narHash": "sha256-vq8l6ff3xbdYAdoyZA7VszP7Hl5oVeQCM7n89sxs+Yo=",
"ref": "refs/heads/main",
"rev": "f845218c5fea89e49074e48270dc5e1b9511a0f9",
"revCount": 25,
"type": "git",
"url": "https://git.voronind.com/mirror/mini.align.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/mini.align.git"
}
},
"nvimAutoclose": {
"flake": false,
"locked": {
"lastModified": 1708731776,
"narHash": "sha256-kcPV9NFv0RrilOWwK5qKzcevkD4dC750IKkz1stXhA4=",
"ref": "refs/heads/main",
"rev": "dc42806540dcf448ecb2bad6b67204410cfbe629",
"revCount": 91,
"type": "git",
"url": "https://git.voronind.com/mirror/autoclose.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/autoclose.nvim.git"
}
},
"nvimBufferline": {
"flake": false,
"locked": {
"lastModified": 1706526490,
"narHash": "sha256-M+QoCYR4WQRqH7KSkdKEBK4MyzPF2uoaA0UtMuc70ic=",
"ref": "refs/heads/main",
"rev": "b15c6daf5a64426c69732b31a951f4e438cb6590",
"revCount": 804,
"type": "git",
"url": "https://git.voronind.com/mirror/bufferline.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/bufferline.nvim.git"
}
},
"nvimCloseBuffers": {
"flake": false,
"locked": {
"lastModified": 1636931460,
"narHash": "sha256-/jk38ebxKTlyH3AsrSQWMl/cErmu6threyy/MIrdzD4=",
"ref": "refs/heads/master",
"rev": "3acbcad1211572342632a6c0151f839e7dead27f",
"revCount": 45,
"type": "git",
"url": "https://git.voronind.com/mirror/close-buffers.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/close-buffers.nvim.git"
}
},
"nvimDevicons": {
"flake": false,
"locked": {
"lastModified": 1708217976,
"narHash": "sha256-hMBzqBSHrn4cqV1HBbFJSPR47INNs+jgm54w1f/lAtA=",
"ref": "refs/heads/master",
"rev": "14ac5887110b06b89a96881d534230dac3ed134d",
"revCount": 241,
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-web-devicons.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-web-devicons.git"
}
},
"nvimGitsigns": {
"flake": false,
"locked": {
"lastModified": 1706372432,
"narHash": "sha256-SLDaqzbvBTTuJEP9H2WOADuxsguMntR+upsGPW8aOEk=",
"ref": "refs/heads/main",
"rev": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae",
"revCount": 818,
"type": "git",
"url": "https://git.voronind.com/mirror/gitsigns.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/gitsigns.nvim.git"
}
},
"nvimGruvbox": {
"flake": false,
"locked": {
"lastModified": 1707563103,
"narHash": "sha256-1lVNw0WJyS6n306P7ElK15rLnwyv0YD9tCuHs/kTzQM=",
"ref": "refs/heads/master",
"rev": "b17fe51688b76e2ccf118e5f76f3978b9a8c503e",
"revCount": 769,
"type": "git",
"url": "https://git.voronind.com/mirror/gruvbox-material.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/gruvbox-material.git"
}
},
"nvimIndentoMatic": {
"flake": false,
"locked": {
"lastModified": 1685816927,
"narHash": "sha256-scdMOPZZcAxaSf2KN/cOzKFrbv7tm1bwbtV0KgfuUOg=",
"ref": "refs/heads/master",
"rev": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719",
"revCount": 58,
"type": "git",
"url": "https://git.voronind.com/mirror/indent-o-matic.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/indent-o-matic.git"
}
},
"nvimLspconfig": {
"flake": false,
"locked": {
"lastModified": 1708797880,
"narHash": "sha256-FgrTQy9NXjlq+G1W9T9VA7ASJ+qI9891MntlcXVzYqo=",
"ref": "refs/heads/master",
"rev": "b8751ff9ac9fd6ce253e0653d898de02e54040d5",
"revCount": 2762,
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-lspconfig.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-lspconfig.git"
}
},
"nvimLualine": {
"flake": false,
"locked": {
"lastModified": 1706181415,
"narHash": "sha256-LMMcRY4qnGywdK6Bl4YeAEKLhnRuOZ2txn4oYoso2gI=",
"ref": "refs/heads/master",
"rev": "7d131a8d3ba5016229e8a1d08bf8782acea98852",
"revCount": 678,
"type": "git",
"url": "https://git.voronind.com/mirror/lualine.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/lualine.nvim.git"
}
},
"nvimPlenary": {
"flake": false,
"locked": {
"lastModified": 1706563407,
"narHash": "sha256-AWJHxehKUkEV6N+n78urqHjMVUsMfDK3lvHs/VxhKE8=",
"ref": "refs/heads/master",
"rev": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d",
"revCount": 354,
"type": "git",
"url": "https://git.voronind.com/mirror/plenary.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/plenary.nvim.git"
}
},
"nvimSingleComment": {
"flake": false,
"locked": {
"lastModified": 1707312631,
"narHash": "sha256-lMB930CBKbTYBCS08ROPC9gyRYxEHmp/HxCsP9M66/Y=",
"ref": "refs/heads/main",
"rev": "be1cd57abae436f28012f57b2ac8f746cfaa555c",
"revCount": 81,
"type": "git",
"url": "https://git.voronind.com/mirror/SingleComment.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/SingleComment.nvim.git"
}
},
"nvimTelescope": {
"flake": false,
"locked": {
"lastModified": 1708784664,
"narHash": "sha256-PpUWXgzwUeSZVJg4invL4hk+EAQbxH7+4p8Qo1dUl7g=",
"ref": "refs/heads/master",
"rev": "2e1e382df42467029b493c143c2e727028140214",
"revCount": 1345,
"type": "git",
"url": "https://git.voronind.com/mirror/telescope.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/telescope.nvim.git"
}
},
"nvimTodo": {
"flake": false,
"locked": {
"lastModified": 1705847650,
"narHash": "sha256-DiyieXXx7iYGWkpeOvduJf0n7dnpaQ7rXmaWvZQaCyE=",
"ref": "refs/heads/main",
"rev": "833d8dd8b07eeda37a09e99460f72a02616935cb",
"revCount": 153,
"type": "git",
"url": "https://git.voronind.com/mirror/todo-comments.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/todo-comments.nvim.git"
}
},
"nvimTokyonight": {
"flake": false,
"locked": {
"lastModified": 1706697570,
"narHash": "sha256-mzCdcf7FINhhVLUIPv/eLohm4qMG9ndRJ5H4sFU2vO0=",
"ref": "refs/heads/main",
"rev": "610179f7f12db3d08540b6cc61434db2eaecbcff",
"revCount": 571,
"type": "git",
"url": "https://git.voronind.com/mirror/tokyonight.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/tokyonight.nvim.git"
}
},
"nvimTree": {
"flake": false,
"locked": {
"lastModified": 1708757605,
"narHash": "sha256-8aupc1ZQys6AxWa2XoB0Zobx+liEmxuqlumbgeO2zzY=",
"ref": "refs/heads/master",
"rev": "d52fdeb0a300ac42b9cfa65ae0600a299f8e8677",
"revCount": 1443,
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-tree.lua.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-tree.lua.git"
}
},
"nvimTreesitter": {
"flake": false,
"locked": {
"lastModified": 1708795279,
"narHash": "sha256-MNIpcwHSq0ltv8UreF9YEvErp/cQHt9tKXJWNSHs+2E=",
"ref": "refs/heads/master",
"rev": "9896ef5f701cc8258c4f04c6944b77e7cfa244e3",
"revCount": 4898,
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-treesitter.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/nvim-treesitter.git"
}
},
"nvimTrouble": {
"flake": false,
"locked": {
"lastModified": 1697626811,
"narHash": "sha256-8nLghiueYOtWY7OGVxow9A2G/5lgt+Kt5D8q1xeJvVg=",
"ref": "refs/heads/main",
"rev": "f1168feada93c0154ede4d1fe9183bf69bac54ea",
"revCount": 250,
"type": "git",
"url": "https://git.voronind.com/mirror/trouble.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/trouble.nvim.git"
}
},
"nvimWhichKey": {
"flake": false,
"locked": {
"lastModified": 1697801635,
"narHash": "sha256-uvghPj/teWrRMm09Gh8iQ/LV2nYJw0lmoiZK6L4+1cY=",
"ref": "refs/heads/main",
"rev": "4433e5ec9a507e5097571ed55c02ea9658fb268a",
"revCount": 335,
"type": "git",
"url": "https://git.voronind.com/mirror/which-key.nvim.git"
},
"original": {
"type": "git",
"url": "https://git.voronind.com/mirror/which-key.nvim.git"
}
},
"root": {
"inputs": {
"applefonts": "applefonts",
"dotfiles": "dotfiles",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"nvimAlign": "nvimAlign",
"nvimAutoclose": "nvimAutoclose",
"nvimBufferline": "nvimBufferline",
"nvimCloseBuffers": "nvimCloseBuffers",
"nvimDevicons": "nvimDevicons",
"nvimGitsigns": "nvimGitsigns",
"nvimGruvbox": "nvimGruvbox",
"nvimIndentoMatic": "nvimIndentoMatic",
"nvimLspconfig": "nvimLspconfig",
"nvimLualine": "nvimLualine",
"nvimPlenary": "nvimPlenary",
"nvimSingleComment": "nvimSingleComment",
"nvimTelescope": "nvimTelescope",
"nvimTodo": "nvimTodo",
"nvimTokyonight": "nvimTokyonight",
"nvimTree": "nvimTree",
"nvimTreesitter": "nvimTreesitter",
"nvimTrouble": "nvimTrouble",
"nvimWhichKey": "nvimWhichKey"
}
}
},

View file

@ -1,14 +1,93 @@
{
inputs = {
# System.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
dotfiles = {
url = "git+https://git.voronind.com/voronind/linux.git";
flake = false;
};
applefonts.url = "git+https://git.voronind.com/voronind/nix_applefonts.git";
# Nvim plugins.
nvimAlign = {
url = "git+https://git.voronind.com/mirror/mini.align.git";
flake = false;
};
nvimAutoclose = {
url = "git+https://git.voronind.com/mirror/autoclose.nvim.git";
flake = false;
};
nvimBufferline = {
url = "git+https://git.voronind.com/mirror/bufferline.nvim.git";
flake = false;
};
nvimCloseBuffers = {
url = "git+https://git.voronind.com/mirror/close-buffers.nvim.git";
flake = false;
};
nvimDevicons = {
url = "git+https://git.voronind.com/mirror/nvim-web-devicons.git";
flake = false;
};
nvimGitsigns = {
url = "git+https://git.voronind.com/mirror/gitsigns.nvim.git";
flake = false;
};
nvimGruvbox = {
url = "git+https://git.voronind.com/mirror/gruvbox-material.git";
flake = false;
};
nvimIndentoMatic = {
url = "git+https://git.voronind.com/mirror/indent-o-matic.git";
flake = false;
};
nvimLspconfig = {
url = "git+https://git.voronind.com/mirror/nvim-lspconfig.git";
flake = false;
};
nvimLualine = {
url = "git+https://git.voronind.com/mirror/lualine.nvim.git";
flake = false;
};
nvimPlenary = {
url = "git+https://git.voronind.com/mirror/plenary.nvim.git";
flake = false;
};
nvimSingleComment = {
url = "git+https://git.voronind.com/mirror/SingleComment.nvim.git";
flake = false;
};
nvimTelescope = {
url = "git+https://git.voronind.com/mirror/telescope.nvim.git";
flake = false;
};
nvimTodo = {
url = "git+https://git.voronind.com/mirror/todo-comments.nvim.git";
flake = false;
};
nvimTokyonight = {
url = "git+https://git.voronind.com/mirror/tokyonight.nvim.git";
flake = false;
};
nvimTree = {
url = "git+https://git.voronind.com/mirror/nvim-tree.lua.git";
flake = false;
};
nvimTreesitter = {
url = "git+https://git.voronind.com/mirror/nvim-treesitter.git";
flake = false;
};
nvimTrouble = {
url = "git+https://git.voronind.com/mirror/trouble.nvim.git";
flake = false;
};
nvimWhichKey = {
url = "git+https://git.voronind.com/mirror/which-key.nvim.git";
flake = false;
};
};
outputs = { self, nixpkgs, dotfiles, applefonts } @inputs: rec {
outputs = { self, nixpkgs, dotfiles, applefonts, ... } @inputs: rec {
# Constant values.
nixosModules.const = {
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.

View file

@ -1,4 +1,4 @@
{ environment, ... }: let
{ environment, inputs, ... }: let
nvimSrc = "/etc/nvim/";
in {
environment.etc.nvim.source = ./nvim;
@ -9,13 +9,14 @@ in {
vimAlias = true;
configure = {
customRC = ''
set runtimepath+=${inputs.nvimTrouble},${inputs.nvimAlign},${inputs.nvimAutoclose},${inputs.nvimBufferline},${inputs.nvimCloseBuffers},${inputs.nvimDevicons},${inputs.nvimGitsigns},${inputs.nvimGruvbox},${inputs.nvimIndentoMatic},${inputs.nvimLspconfig},${inputs.nvimLualine},${inputs.nvimPlenary},${inputs.nvimSingleComment},${inputs.nvimTelescope},${inputs.nvimTodo},${inputs.nvimTokyonight},${inputs.nvimTree},${inputs.nvimTreesitter},${inputs.nvimWhichKey}
lua dofile("${nvimSrc}/key/Rekey.lua")
lua dofile("${nvimSrc}/key/Leader.lua")
lua dofile("${nvimSrc}/config/Autoread.lua")
lua dofile("${nvimSrc}/config/Etc.lua")
lua dofile("${nvimSrc}/config/Search.lua")
lua dofile("${nvimSrc}/config/Tab.lua")
lua dofile("${nvimSrc}/plugin/Init.lua")
lua dofile("${nvimSrc}/plugin/Filetree.lua")
lua dofile("${nvimSrc}/plugin/lsp/Rust.lua")
lua dofile("${nvimSrc}/plugin/lsp/Tex.lua")