depot/packages/projects.nix

97 lines
2.4 KiB
Nix
Raw Normal View History

{ lib, inputs, self, ... }:
2022-07-31 16:09:40 +03:00
{
imports = [
./checks
./modules/devshell.nix
./build-support
./networking/hyprspace/project.nix
./networking/ipfs-cluster/project.nix
./servers/reflex-cache/project.nix
./websites/landing/project.nix
./websites/stop-using-nix-env/project.nix
];
dream2nix.config = {
projectRoot = ./.;
overridesDirs = [ ./dream2nix-overrides ];
};
perSystem = { config, filters, pkgs, self', ... }:
2022-07-31 16:09:40 +03:00
let
inherit (self'.packages) nix-super;
pins = import ./sources;
in
{
dream2nix = {
inputs = filters.doFilter filters.packages {
uptime-kuma = {
source = pins.uptime-kuma;
projects.uptime-kuma = {
subsystem = "nodejs";
translator = "package-lock";
};
};
excalidraw = {
source = pins.excalidraw;
projects.excalidraw = {
subsystem = "nodejs";
translator = "yarn-lock";
};
};
};
};
2022-07-31 16:09:40 +03:00
packages = filters.doFilter filters.packages rec {
2022-08-08 21:10:35 +03:00
cinny = pkgs.callPackage ./web-apps/cinny { inherit pins; };
excalidraw = let
inherit (config.dream2nix.outputs.excalidraw.packages) excalidraw;
in excalidraw // { webroot = "${excalidraw}/${excalidraw.webPath}"; };
2022-04-27 18:01:24 +03:00
2022-07-31 16:09:40 +03:00
grafana = pkgs.callPackage ./monitoring/grafana { };
2022-06-18 22:50:27 +03:00
2022-07-31 16:09:40 +03:00
ipfs = pkgs.callPackage ./networking/ipfs { };
2022-07-31 16:09:40 +03:00
npins = pkgs.callPackage ./tools/npins {
nix = nix-super;
2022-07-31 16:09:40 +03:00
nix-prefetch-git = pkgs.nix-prefetch-git.override {
nix = nix-super;
};
};
2022-07-31 16:09:40 +03:00
opentelemetry-java-agent-bin = pkgs.callPackage ./monitoring/opentelemetry-java-agent-bin { };
2022-07-31 16:09:40 +03:00
pin = pkgs.callPackage ./tools/pin {
inherit npins;
nix = nix-super;
};
2022-05-24 20:38:07 +03:00
2022-07-31 16:09:40 +03:00
searxng = pkgs.callPackage ./web-apps/searxng { inherit pins; };
2022-05-31 12:38:38 +03:00
2022-07-31 16:09:40 +03:00
stevenblack-hosts = pkgs.callPackage ./data/stevenblack { inherit pins; };
inherit (config.dream2nix.outputs.uptime-kuma.packages) uptime-kuma;
2022-05-26 21:55:52 +03:00
};
2022-07-31 16:09:40 +03:00
projectShells = {
2022-07-31 16:09:40 +03:00
default = let
flakePkgs = self'.packages;
in {
2022-07-31 16:09:40 +03:00
tools = with flakePkgs; [
agenix
deploy-rs
2022-08-05 21:53:06 +03:00
dvc
hci
2022-07-31 16:09:40 +03:00
npins
pin
pkgs.deadnix
pkgs.statix
2022-07-31 16:09:40 +03:00
];
env.NPINS_DIRECTORY.eval = "$REPO_ROOT/packages/sources";
};
2022-03-14 00:42:29 +02:00
};
2022-03-14 00:13:53 +02:00
};
2022-07-31 16:09:40 +03:00
}