add nix stuff

This commit is contained in:
Johannes Jöns 2024-01-24 16:09:05 +01:00
parent 07b38ba006
commit 30093eb03d
3 changed files with 31 additions and 3 deletions

3
.gitignore vendored
View file

@ -122,6 +122,7 @@ celerybeat.pid
# Environments # Environments
.env .env
.venv .venv
.direnv
env/ env/
venv/ venv/
ENV/ ENV/
@ -157,4 +158,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ .idea/

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1705913940,
"narHash": "sha256-pjSl/1cwYczhSSudR6z0JA/8MclZx/ztzTahvOzwPPw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9ed792777ae7967fee22dae2e88fdb6cb965b193",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -12,8 +12,8 @@
{ {
devShells = forEachSupportedSystem ({ pkgs }: { devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ python313 virtualenv libffi libsodium jetbrains.pycharm-community ] ++ packages = with pkgs; [ python311 virtualenv libffi libsodium jetbrains.pycharm-community ] ++
(with pkgs.python313Packages; [ pip virtualenv ]); (with pkgs.python311Packages; [ pip virtualenv ]);
}; };
}); });
}; };