2023-12-14 18:16:04 +02:00
|
|
|
{
|
|
|
|
nixConfig = {
|
|
|
|
trusted-substituters = "https://cache.nixos.org/";
|
|
|
|
trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=";
|
|
|
|
extra-experimental-features = "nix-command flakes";
|
|
|
|
};
|
|
|
|
inputs = {
|
2024-01-07 23:07:09 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
2023-12-14 18:16:04 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs {inherit system;};
|
2023-12-14 18:24:10 +02:00
|
|
|
devDeps = with pkgs; [
|
2023-12-25 18:08:07 +02:00
|
|
|
python3Packages.django_5
|
2024-01-12 00:05:57 +02:00
|
|
|
python3Packages.django-debug-toolbar
|
2023-12-15 11:51:39 +02:00
|
|
|
python3Packages.django-compressor
|
|
|
|
dart-sass
|
2023-12-14 18:24:10 +02:00
|
|
|
|
2024-01-12 00:58:20 +02:00
|
|
|
geoipWithDatabase
|
|
|
|
python3Packages.geoip2
|
|
|
|
libmaxminddb
|
2023-12-14 18:24:10 +02:00
|
|
|
];
|
2023-12-14 18:16:04 +02:00
|
|
|
in {
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
2024-01-12 00:58:20 +02:00
|
|
|
GEOIP_PATH = "${pkgs.geolite-legacy}/share/GeoIP";
|
2023-12-14 18:16:04 +02:00
|
|
|
packages = devDeps;
|
|
|
|
};
|
|
|
|
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
});
|
|
|
|
}
|