configure astrocore more
This commit is contained in:
parent
dc02604cdf
commit
e0dfc1e2d1
6 changed files with 112 additions and 13 deletions
17
flake.nix
17
flake.nix
|
|
@ -7,9 +7,7 @@
|
|||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixvim, flake-utils, ... }@inputs:
|
||||
let
|
||||
config = import ./config; # import the module directly
|
||||
in flake-utils.lib.eachDefaultSystem (system:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
nixvimLib = nixvim.lib.${system};
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
|
@ -18,6 +16,16 @@
|
|||
inherit pkgs;
|
||||
module = ./.;
|
||||
};
|
||||
mkNixvim = specialArgs:
|
||||
nixvim.legacyPackages.${system}.makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
|
||||
module = ./.;
|
||||
|
||||
extraSpecialArgs = specialArgs // {
|
||||
inherit pkgs;
|
||||
};
|
||||
};
|
||||
in {
|
||||
formatter = nixpkgs.legacyPackages.${system}.alejandra;
|
||||
|
||||
|
|
@ -30,7 +38,8 @@
|
|||
|
||||
packages = {
|
||||
# Lets you run `nix run .` to start nixvim
|
||||
default = nvim;
|
||||
default = mkNixvim { };
|
||||
lite = mkNixvim { withNodeJs = false; };
|
||||
};
|
||||
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue