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 {
|
devShell = pkgs.mkShell {
|
||||||
name = "dgsi-dev";
|
name = "dgsi.dev";
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
|
pkgs.dart-sass
|
||||||
|
|
||||||
# Python dependencies
|
# Python dependencies
|
||||||
(pkgs.python3.withPackages (ps: [
|
(pkgs.python3.withPackages (
|
||||||
ps.daphne
|
ps:
|
||||||
ps.dj-rest-auth
|
[
|
||||||
ps.django
|
ps.daphne
|
||||||
ps.django-allauth
|
ps.django
|
||||||
ps.django-types
|
ps.django-allauth
|
||||||
ps.djangorestframework
|
ps.django-compressor
|
||||||
(ps.callPackage ./pkgs/pykanidm { })
|
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;
|
] ++ check.enabledPackages;
|
||||||
|
|
||||||
|
env = {
|
||||||
|
CREDENTIALS_DIRECTORY = builtins.toString ./.credentials;
|
||||||
|
DGSI_DEBUG = "true";
|
||||||
|
DGSI_STATIC_ROOT = builtins.toString ./.static;
|
||||||
|
};
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${check.shellHook}
|
${check.shellHook}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue