feat(nix): Update devShell
This commit is contained in:
parent
606b23bf13
commit
57d1c0a0c2
3 changed files with 26 additions and 10 deletions
1
.credentials/SECRET_KEY
Normal file
1
.credentials/SECRET_KEY
Normal file
|
@ -0,0 +1 @@
|
|||
django-insecure-8ilr_om9=chx2oxir&58xsr)s#3lp=)qxy$tp1evp0b%%c(_93
|
0
.static/.gitkeep
Normal file
0
.static/.gitkeep
Normal file
35
default.nix
35
default.nix
|
@ -28,23 +28,38 @@ in
|
|||
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
name = "dgsi-dev";
|
||||
name = "dgsi.dev";
|
||||
|
||||
packages = [
|
||||
pkgs.jq
|
||||
pkgs.dart-sass
|
||||
|
||||
# Python dependencies
|
||||
(pkgs.python3.withPackages (ps: [
|
||||
ps.daphne
|
||||
ps.dj-rest-auth
|
||||
ps.django
|
||||
ps.django-allauth
|
||||
ps.django-types
|
||||
ps.djangorestframework
|
||||
(ps.callPackage ./pkgs/pykanidm { })
|
||||
]))
|
||||
(pkgs.python3.withPackages (
|
||||
ps:
|
||||
[
|
||||
ps.daphne
|
||||
ps.django
|
||||
ps.django-allauth
|
||||
ps.django-compressor
|
||||
ps.django-types
|
||||
ps.loadcredential
|
||||
]
|
||||
++ (builtins.map (p: ps.callPackage ./pkgs/${p} { }) [
|
||||
"django-browser-reload"
|
||||
"django-sass-processor"
|
||||
"django-sass-processor-dart-sass"
|
||||
"pykanidm"
|
||||
])
|
||||
))
|
||||
] ++ check.enabledPackages;
|
||||
|
||||
env = {
|
||||
CREDENTIALS_DIRECTORY = builtins.toString ./.credentials;
|
||||
DGSI_DEBUG = "true";
|
||||
DGSI_STATIC_ROOT = builtins.toString ./.static;
|
||||
};
|
||||
|
||||
shellHook = ''
|
||||
${check.shellHook}
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue