diff options
author | Joris | 2024-05-20 09:40:11 +0200 |
---|---|---|
committer | Joris | 2024-05-20 09:40:11 +0200 |
commit | 436ddf6f23242eb709b591cd5e9cbf1553f8d390 (patch) | |
tree | dfed58b5e553f131fd3009f03f095ca40efc5949 /flake.nix | |
parent | 6baa0419d3b5eb63c70be446226a321f900e433d (diff) |
Allow to upload file and download from given link
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..92951f0 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { devShell = pkgs.mkShell { + buildInputs = with pkgs; [ + (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [ + sqlite + watchexec + ])) + ]; + shellHook = '' + export HOST="127.0.0.1" + export PORT="8080" + export KEY="1234" + ''; + }; } + ); +} |