add nixpkgs-stable for neorg

This commit is contained in:
megit 2024-04-09 12:37:39 +08:00
parent 5f4786b782
commit d26387fa87
3 changed files with 24 additions and 1 deletions

View file

@ -1,11 +1,12 @@
# vim: ts=4:sts=0:sw=0:noet
{
helpers
pkgs-stable
, ... }:
{
plugins = {
neorg = {
enable = true;
package = pkgs-stable.vimPlugins.neorg;
modules = {
"core.defaults" = {}; # -- Loads default behaviour
"core.summary" = {};
@ -32,6 +33,7 @@ helpers
};
"core.keybinds" = {
config = {
default_keybinds = true;
hook.__raw = ''
function(keybinds)
keybinds.unmap("norg", "i", "<M-CR>")

17
flake.lock generated
View file

@ -205,6 +205,22 @@
"type": "indirect"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1712437997,
"narHash": "sha256-g0whLLwRvgO2FsyhY8fNk+TWenS3jg5UdlWL4uqgFeo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e38d7cb66ea4f7a0eb6681920615dfcc30fc2920",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1711333969,
@ -277,6 +293,7 @@
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable",
"nixvim": "nixvim"
}
},

View file

@ -3,12 +3,14 @@
inputs = {
nixvim.url = "github:nix-community/nixvim";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
nixpkgs-stable,
nixvim,
flake-utils,
...
@ -18,6 +20,7 @@
flake-utils.lib.eachDefaultSystem (system: let
nixvimLib = nixvim.lib.${system};
pkgs = import nixpkgs {inherit system;};
pkgs-stable = import nixpkgs-stable {inherit system;};
nixvim' = nixvim.legacyPackages.${system};
nvim = nixvim'.makeNixvimWithModule {
inherit pkgs;
@ -25,6 +28,7 @@
# You can use `extraSpecialArgs` to pass additional arguments to your module files
extraSpecialArgs = {
inherit self;
inherit pkgs-stable;
};
};
in {