Refactor nixvim to move it as standalone package instead of nixos module

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 92ec57e83f
commit c75945ddba
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 24 additions and 68 deletions

View file

@ -11,6 +11,7 @@
system,
lib,
self',
inputs',
...
}: let
inherit (inputs) nixpkgs;
@ -20,6 +21,7 @@
config = {
allowUnfree = true;
};
overlays = [(_final: _prev: {inherit lib;})];
};
devShells.default = pkgs.mkShell {
name = "nixos-shell";
@ -36,6 +38,7 @@
inputsScope = lib.makeScope pkgs.newScope (self: {
inherit inputs rootPath;
srcs = self.callPackage (rootPath + "/_sources/generated.nix") {};
inherit (inputs'.nixvim.legacyPackages) makeNixvim makeNixvimWithModule;
});
in
lib.packagesFromDirectoryRecursive {