nvim/flake.nix

45 lines
1 KiB
Nix
Raw Normal View History

2024-02-19 16:58:17 +00:00
{
2024-02-21 02:52:23 +00:00
description = "Guanran928's Neovim configuration";
2024-02-19 16:58:17 +00:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2024-03-09 05:30:37 +00:00
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
### De-dupe flake dependencies
systems.url = "github:nix-systems/default";
2024-02-19 16:58:17 +00:00
};
2024-11-16 15:24:14 +00:00
outputs =
inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
{
### nix fmt
formatter = treefmtEval.config.build.wrapper;
2024-03-09 05:30:37 +00:00
2024-11-16 15:24:14 +00:00
### nix flake check
checks.formatting = treefmtEval.config.build.check inputs.self;
2024-02-21 02:55:06 +00:00
2024-11-16 15:24:14 +00:00
### nix develop
devShells.default = pkgs.mkShellNoCC {
packages = with pkgs; [
lua-language-server
stylua
];
};
}
);
2024-02-19 16:58:17 +00:00
}