feat(nix): Add static directory used locally
This commit is contained in:
parent
35c3c12a83
commit
10cfb987c1
2 changed files with 14 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -65,3 +65,4 @@ venv
|
|||
db.sqlite3
|
||||
public/
|
||||
.direnv
|
||||
.static
|
||||
|
|
14
default.nix
14
default.nix
|
@ -8,8 +8,13 @@
|
|||
name = "cas-eleves.dev";
|
||||
|
||||
packages = [
|
||||
(pkgs.python3.withPackages (ps: [
|
||||
# Python 3.12 is required to have the correct SSL options for connecting with the legacy server
|
||||
(pkgs.python312.withPackages (ps: [
|
||||
ps.django
|
||||
ps.ipython
|
||||
ps.ldap3
|
||||
|
||||
# Local packages
|
||||
(ps.callPackage ./nix/django-cas-server { })
|
||||
(ps.callPackage ./nix/loadcredential { })
|
||||
]))
|
||||
|
@ -18,6 +23,13 @@
|
|||
env = {
|
||||
CREDENTIALS_DIRECTORY = builtins.toString ./.credentials;
|
||||
CE_DEBUG = true;
|
||||
CE_STATIC_ROOT = builtins.toString ./.static;
|
||||
};
|
||||
|
||||
shellHook = ''
|
||||
if [ ! -d .static ]; then
|
||||
mkdir .static
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue