basic structure, colorschemes and astrocore
This commit is contained in:
commit
dc02604cdf
10 changed files with 390 additions and 0 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
description = "My nixvim configuration";
|
||||
|
||||
inputs = {
|
||||
nixvim.url = "github:nix-community/nixvim";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixvim, flake-utils, ... }@inputs:
|
||||
let
|
||||
config = import ./config; # import the module directly
|
||||
in flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
nixvimLib = nixvim.lib.${system};
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
nixvim' = nixvim.legacyPackages.${system};
|
||||
nvim = nixvim'.makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
module = ./.;
|
||||
};
|
||||
in {
|
||||
formatter = nixpkgs.legacyPackages.${system}.alejandra;
|
||||
|
||||
checks = {
|
||||
default = nixvimLib.check.mkTestDerivationFromNvim {
|
||||
inherit nvim;
|
||||
name = "My nixvim configuration";
|
||||
};
|
||||
};
|
||||
|
||||
packages = {
|
||||
# Lets you run `nix run .` to start nixvim
|
||||
default = nvim;
|
||||
};
|
||||
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue