forked from DGNum/gestioCOF
dev: add nixos setup
This commit is contained in:
parent
7a52690a63
commit
a891ec56a6
3 changed files with 25 additions and 1 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use nix
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,4 +18,5 @@ media/
|
|||
.cache
|
||||
|
||||
# VSCode
|
||||
.vscode/
|
||||
.vscode/
|
||||
.direnv
|
22
shell.nix
Normal file
22
shell.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue