commit cfe2102f517daa27868b25726cf55f5dc16fbc2d Author: Mira Date: Mon Apr 13 21:56:16 2026 +0300 init diff --git a/.envrc b/.envrc new file mode 100755 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..94e6547 --- /dev/null +++ b/flake.nix @@ -0,0 +1,34 @@ +{ + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils, ... }: + flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + tsc = pkgs.writeShellScriptBin "tsc" '' + exec pnpm exec tsc "$@" + ''; + in + { + + devShells.default = pkgs.mkShell { + buildInputs = + with pkgs; [ + nodejs pnpm tsc + zip unzip rsync + pkg-config openssl.dev openssl pwgen + jq curl git asciinema + ]; + }; + + devShell = self.devShells.${system}.default; + } + ); +}