diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..a96880d --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +use flake +dotenv_if_exists diff --git a/.gitignore b/.gitignore index 57ef145..8ade3cb 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ dist .env .env.local +.direnv eslint_report.json diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..85c2a68 --- /dev/null +++ b/flake.lock @@ -0,0 +1,43 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1676283394, + "narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1676518424, + "narHash": "sha256-OsJSBwl9Hayh/bmxDtUyxm2U6btaBHuLvviE9KpMmwQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a592a97fcedae7a06b8506623b25fd38a032ad13", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..cb47f59 --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + description = "Discord bot for Prism Launcher"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-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 { packages = with pkgs; [ yarn ]; }; + }); +}