dev: add nixos setup

This commit is contained in:
Tom Hubrecht 2022-10-03 10:34:06 +02:00
parent 7a52690a63
commit a891ec56a6
3 changed files with 25 additions and 1 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

3
.gitignore vendored
View file

@ -18,4 +18,5 @@ media/
.cache .cache
# VSCode # VSCode
.vscode/ .vscode/
.direnv

22
shell.nix Normal file
View file

@ -0,0 +1,22 @@
let
mach-nix = import
(builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix";
ref = "refs/tags/3.5.0";
})
{ };
requirements = builtins.readFile ./requirements.txt;
requirements-dev = ''
django-debug-toolbar
ipython
black
isort
flake8
'';
in
mach-nix.mkPythonShell {
requirements = requirements + requirements-dev;
}