2023-01-11 03:23:06 +02:00
|
|
|
{ lib, inputs, self, ... }:
|
2022-07-31 16:09:40 +03:00
|
|
|
|
|
|
|
{
|
2023-01-08 20:07:20 +02: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
|
|
|
|
];
|
2023-01-11 03:23:06 +02:00
|
|
|
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
|
|
|
|
{
|
2023-01-11 03:23:06 +02:00
|
|
|
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 {
|
2023-01-11 03:23:06 +02:00
|
|
|
|
2022-08-08 21:10:35 +03:00
|
|
|
cinny = pkgs.callPackage ./web-apps/cinny { inherit pins; };
|
|
|
|
|
2022-08-29 00:14:37 +03:00
|
|
|
excalidraw = let
|
2023-01-11 03:23:06 +02:00
|
|
|
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-06-18 16:17:08 +03:00
|
|
|
|
2022-07-31 16:09:40 +03:00
|
|
|
npins = pkgs.callPackage ./tools/npins {
|
2022-05-26 22:22:27 +03:00
|
|
|
nix = nix-super;
|
2022-07-31 16:09:40 +03:00
|
|
|
nix-prefetch-git = pkgs.nix-prefetch-git.override {
|
|
|
|
nix = nix-super;
|
|
|
|
};
|
2022-05-26 22:22:27 +03:00
|
|
|
};
|
|
|
|
|
2022-07-31 16:09:40 +03:00
|
|
|
opentelemetry-java-agent-bin = pkgs.callPackage ./monitoring/opentelemetry-java-agent-bin { };
|
2022-06-19 00:40:37 +03:00
|
|
|
|
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; };
|
2023-01-11 03:23:06 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2022-07-31 16:42:56 +03:00
|
|
|
projectShells = {
|
2022-07-31 16:09:40 +03:00
|
|
|
default = let
|
|
|
|
flakePkgs = self'.packages;
|
2022-07-31 16:42:56 +03:00
|
|
|
in {
|
2022-07-31 16:09:40 +03:00
|
|
|
tools = with flakePkgs; [
|
|
|
|
agenix
|
|
|
|
deploy-rs
|
2022-08-05 21:53:06 +03:00
|
|
|
dvc
|
2023-05-13 17:46:05 +03:00
|
|
|
hci
|
2022-07-31 16:09:40 +03:00
|
|
|
npins
|
|
|
|
pin
|
2022-10-17 15:32:13 +03:00
|
|
|
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
|
|
|
}
|