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
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./tests
|
2022-07-31 16:42:56 +03:00
|
|
|
./modules/devshell.nix
|
2022-08-05 22:28:53 +03:00
|
|
|
./build-support
|
2022-07-31 16:48:55 +03:00
|
|
|
|
|
|
|
./websites/landing/project.nix
|
2022-08-06 17:15:29 +03:00
|
|
|
./websites/stop-using-nix-env/project.nix
|
2022-07-31 16:09:40 +03:00
|
|
|
];
|
|
|
|
packages = filters.doFilter filters.packages rec {
|
|
|
|
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 17:09:09 +03:00
|
|
|
gohugo-theme-ananke = pkgs.callPackage ./themes/gohugo-theme-ananke { inherit pins; };
|
|
|
|
|
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-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
|
|
|
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
|
2022-05-27 02:00:10 +03:00
|
|
|
|
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
|
|
|
|
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
|
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;
|
2022-07-31 16:42:56 +03:00
|
|
|
in {
|
2022-07-31 16:09:40 +03:00
|
|
|
packages = [
|
|
|
|
reflex-cache.dependencyEnv
|
|
|
|
];
|
2022-03-21 22:42:02 +02:00
|
|
|
|
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
|
|
|
}
|