diff --git a/.envrc b/.envrc deleted file mode 100644 index ac18306..0000000 --- a/.envrc +++ /dev/null @@ -1,10 +0,0 @@ -if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then - source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" -fi - -nix_direnv_watch_file flake.nix -nix_direnv_watch_file flake.lock -if ! use flake . --impure -then - echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2 -fi diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 0e1af32..0000000 --- a/flake.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - description = "TeaClient Website"; - - inputs = { - nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling"; - systems.url = "github:nix-systems/default"; - devenv.url = "github:cachix/devenv"; - devenv.inputs.nixpkgs.follows = "nixpkgs"; - }; - - nixConfig = { - extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; - extra-substituters = "https://devenv.cachix.org"; - }; - - outputs = { self, nixpkgs, devenv, systems, ... } @ inputs: - let - forEachSystem = system: { - devenv-up = self.devShells.${system}.default.config.procfileScript; - devShell = devenv.lib.mkShell { - inherit inputs; - pkgs = nixpkgs.legacyPackages.${system}; - modules = [ - { - packages = [ nixpkgs.legacyPackages.${system}.hello ]; - languages.javascript.bun.enable = true; - processes.run.exec = "hello"; - } - ]; - }; - }; - in - { - packages = forEachSystem (import systems); - devShells = forEachSystem (import systems); - }; -} \ No newline at end of file