configure astrocore more

This commit is contained in:
Prunebutt 2025-11-21 22:08:37 +01:00
parent dc02604cdf
commit e0dfc1e2d1
6 changed files with 112 additions and 13 deletions

View file

@ -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; };