depot/packages/projects.nix

116 lines
2.9 KiB
Nix
Raw Normal View History

2022-07-31 16:09:40 +03:00
{ inputs, self, ... }:
{
perSystem = { filters, inputs', pkgs, self', system, ... }:
let
inherit (pkgs) lib;
inherit (self'.packages) nix-super;
pins = import ./sources;
dream2nix = inputs.dream2nix.lib2.init {
inherit pkgs;
config = {
projectRoot = ./.;
overridesDirs = [ ./dream2nix-overrides ];
};
2022-03-14 00:13:53 +02:00
};
2022-07-31 16:09:40 +03:00
poetry2nix = pkgs.poetry2nix.overrideScope' (final: prev: {
defaultPoetryOverrides = prev.defaultPoetryOverrides.extend (import ./poetry2nix-overrides);
});
2022-05-24 20:38:07 +03:00
2022-07-31 16:09:40 +03:00
in
{
_module.args = { inherit inputs self; };
2022-07-31 16:09:40 +03:00
imports = [
2022-08-28 17:17:22 +03:00
./checks
./modules/devshell.nix
./build-support
2022-07-31 16:48:55 +03:00
./websites/landing/project.nix
./websites/stop-using-nix-env/project.nix
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
dream = dream2nix.makeOutputs {
source = pins.excalidraw;
};
inherit (dream.packages) excalidraw;
in
excalidraw // { webroot = "${excalidraw}/${excalidraw.webPath}"; };
2022-07-31 16:09:40 +03:00
uptime-kuma = let
dream = dream2nix.makeOutputs {
source = pins.uptime-kuma;
};
inherit (dream.packages) uptime-kuma;
in
uptime-kuma;
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
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };
2022-03-14 00:13:53 +02: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
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
2022-07-31 16:09:40 +03:00
reflex-cache = poetry2nix.mkPoetryApplication {
projectDir = ./servers/reflex-cache;
meta.mainProgram = "reflex";
};
2022-03-14 00:13:53 +02: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
sips = pkgs.callPackage ./servers/sips { };
2022-05-26 22:28:55 +03:00
2022-07-31 16:09:40 +03:00
stevenblack-hosts = pkgs.callPackage ./data/stevenblack { inherit pins; };
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
2022-07-31 16:09:40 +03:00
npins
pin
];
env.NPINS_DIRECTORY.eval = "$REPO_ROOT/packages/sources";
};
reflex-cache = let
inherit (self'.packages) reflex-cache;
in {
2022-07-31 16:09:40 +03:00
packages = [
reflex-cache.dependencyEnv
];
2022-07-31 16:09:40 +03:00
tools = [
pkgs.poetry
];
2022-03-14 00:13:53 +02:00
2022-07-31 16:09:40 +03:00
env.PYTHON = reflex-cache.dependencyEnv.interpreter;
};
2022-03-14 00:42:29 +02:00
};
2022-03-14 00:13:53 +02:00
};
2022-07-31 16:09:40 +03:00
}