Skip to content

Commit d8fe124

Browse files
authored
build: add in nix devShell, and ignore direnv (#1407)
feat: add in flake for development, and ignore direnv folder
1 parent 609389c commit d8fe124

File tree

3 files changed

+89
-0
lines changed

3 files changed

+89
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ luac.out
4444

4545
# generated docs
4646
pages
47+
48+
# direnv
49+
.direnv

flake.lock

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
description = "docs.astronvim.org";
3+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4+
inputs.systems.url = "github:nix-systems/default";
5+
inputs.flake-utils = {
6+
url = "github:numtide/flake-utils";
7+
inputs.systems.follows = "systems";
8+
};
9+
10+
outputs = {
11+
nixpkgs,
12+
flake-utils,
13+
...
14+
}:
15+
flake-utils.lib.eachDefaultSystem (
16+
system: let
17+
pkgs = nixpkgs.legacyPackages.${system};
18+
in {
19+
devShells.default = pkgs.mkShell {packages = with pkgs; [stylua lua-language-server selene];};
20+
}
21+
);
22+
}

0 commit comments

Comments
 (0)