chore: Add Nix development files (#5856)

* chore: Add Nix development files

* chore: add dir env flakes support and add it's directory to gitignore

* chore: add shards
This commit is contained in:
Fijxu
2026-08-01 18:50:15 -04:00
committed by GitHub
parent 6e13814c9e
commit 67bfb56bbe
6 changed files with 122 additions and 0 deletions

27
flake.nix Normal file
View File

@@ -0,0 +1,27 @@
{
description = "Invidious Nix 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};
devPackages = import ./packages.nix { inherit pkgs; };
in
{
devShells.default = pkgs.mkShell {
buildInputs = devPackages;
};
}
);
}