Add flake

This commit is contained in:
Jan Bader
2026-04-04 20:31:37 +02:00
parent c997e764b5
commit d343a48af1
3 changed files with 27 additions and 0 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@@ -50,3 +50,4 @@ htmlcov/
# Playwright
.playwright/
.direnv/

25
flake.nix Normal file
View File

@@ -0,0 +1,25 @@
{
description = "Development environment for jbackup";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in with pkgs; rec {
devShell = pkgs.mkShell {
packages = with pkgs; [
python3
];
};
}
);
}