add flake

This commit is contained in:
2025-11-14 13:43:34 +09:00
parent 3aec645b22
commit 34439c0c91
6 changed files with 127 additions and 2 deletions

24
flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
description = "Neovim Setup Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
name = "nvim-setup";
buildInputs = with pkgs; [
gcc
lua51Packages.lua
lua51Packages.luarocks
];
};
});
}