2022-05-23 11:58:42 +03:00
|
|
|
{ pkgs, inputs, system, ... }@args:
|
2022-03-14 00:13:53 +02:00
|
|
|
let
|
2022-05-23 11:58:42 +03:00
|
|
|
inherit (pkgs) lib;
|
2022-05-24 20:38:07 +03:00
|
|
|
inherit (inputs) unstable;
|
2022-05-26 22:34:14 +03:00
|
|
|
|
|
|
|
pins = import ./sources;
|
|
|
|
|
2022-03-14 00:13:53 +02:00
|
|
|
dream2nix = inputs.dream2nix.lib2.init {
|
2022-06-18 01:55:37 +03:00
|
|
|
inherit pkgs;
|
2022-03-14 00:13:53 +02:00
|
|
|
config = {
|
|
|
|
projectRoot = ./.;
|
|
|
|
overridesDirs = [ ./dream2nix-overrides ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
poetry2nix = pkgs.poetry2nix.overrideScope' (final: prev: {
|
|
|
|
defaultPoetryOverrides = prev.defaultPoetryOverrides.extend (import ./poetry2nix-overrides);
|
|
|
|
});
|
2022-03-21 22:41:18 +02:00
|
|
|
|
|
|
|
mkShell = import lib/devshell.nix args;
|
2022-05-24 20:38:07 +03:00
|
|
|
|
2022-03-14 00:13:53 +02:00
|
|
|
in
|
|
|
|
{
|
2022-05-24 20:38:07 +03:00
|
|
|
packages = rec {
|
2022-04-01 17:24:21 +03:00
|
|
|
ghost = let
|
2022-04-02 19:59:20 +03:00
|
|
|
version = "4.41.3";
|
2022-06-18 01:55:37 +03:00
|
|
|
dream = dream2nix.makeOutputs {
|
2022-04-01 17:24:21 +03:00
|
|
|
source = pkgs.fetchzip {
|
|
|
|
url = "https://github.com/TryGhost/Ghost/releases/download/v${version}/Ghost-${version}.zip";
|
2022-04-02 19:59:20 +03:00
|
|
|
sha256 = "sha256-mqN43LSkd9MHoIHyGS1VsPvpqWqX4Bx5KHcp3KOHw5A=";
|
2022-04-01 17:24:21 +03:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
2022-03-14 00:13:53 +02:00
|
|
|
};
|
2022-06-18 01:55:37 +03:00
|
|
|
inherit (dream.packages) ghost;
|
2022-04-01 17:24:21 +03:00
|
|
|
in
|
2022-05-23 11:58:42 +03:00
|
|
|
ghost;
|
2022-03-14 00:13:53 +02:00
|
|
|
|
2022-04-27 18:01:24 +03:00
|
|
|
uptime-kuma = let
|
2022-06-18 01:55:37 +03:00
|
|
|
dream = dream2nix.makeOutputs {
|
2022-05-26 22:34:14 +03:00
|
|
|
source = pins.uptime-kuma;
|
2022-04-27 18:01:24 +03:00
|
|
|
};
|
2022-06-18 01:55:37 +03:00
|
|
|
inherit (dream.packages) uptime-kuma;
|
2022-04-27 18:01:24 +03:00
|
|
|
in
|
2022-05-23 11:58:42 +03:00
|
|
|
uptime-kuma;
|
2022-04-27 18:01:24 +03:00
|
|
|
|
2022-06-18 22:50:27 +03:00
|
|
|
grafana = pkgs.callPackage ./monitoring/grafana { };
|
|
|
|
|
2022-03-14 00:13:53 +02:00
|
|
|
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };
|
|
|
|
|
2022-06-18 16:17:08 +03:00
|
|
|
ipfs = pkgs.callPackage ./networking/ipfs { };
|
|
|
|
|
2022-05-26 22:22:27 +03:00
|
|
|
npins = let
|
|
|
|
inherit (inputs.self.packages.${system}) nix-super;
|
|
|
|
in pkgs.callPackage ./tools/npins {
|
|
|
|
nix = nix-super;
|
|
|
|
nix-prefetch-git = pkgs.nix-prefetch-git.override {
|
|
|
|
nix = nix-super;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-03-14 00:13:53 +02:00
|
|
|
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
|
|
|
|
|
|
|
|
reflex-cache = poetry2nix.mkPoetryApplication {
|
|
|
|
projectDir = ./servers/reflex-cache;
|
|
|
|
meta.mainProgram = "reflex";
|
|
|
|
};
|
|
|
|
|
2022-05-29 19:12:43 +03:00
|
|
|
searxng = pkgs.callPackage ./web-apps/searxng { inherit pins; };
|
2022-05-24 20:38:07 +03:00
|
|
|
|
2022-03-14 00:13:53 +02:00
|
|
|
sips = pkgs.callPackage ./servers/sips { };
|
2022-05-27 02:00:10 +03:00
|
|
|
|
|
|
|
stevenblack-hosts = pkgs.callPackage ./data/stevenblack { inherit pins; };
|
2022-03-14 00:13:53 +02:00
|
|
|
};
|
|
|
|
|
2022-05-31 12:38:38 +03:00
|
|
|
checks = import ./tests { inherit inputs pkgs system; };
|
|
|
|
|
2022-03-14 00:13:53 +02:00
|
|
|
devShells = {
|
2022-05-26 21:55:52 +03:00
|
|
|
default = let
|
|
|
|
flakePkgs = inputs.self.packages.${system};
|
|
|
|
in mkShell {
|
|
|
|
tools = with flakePkgs; [
|
|
|
|
agenix
|
|
|
|
deploy-rs
|
2022-05-26 22:28:55 +03:00
|
|
|
npins
|
2022-05-26 21:55:52 +03:00
|
|
|
];
|
2022-05-26 22:28:55 +03:00
|
|
|
|
|
|
|
env.NPINS_DIRECTORY.eval = "$REPO_ROOT/packages/sources";
|
2022-05-26 21:55:52 +03:00
|
|
|
};
|
2022-03-14 00:42:29 +02:00
|
|
|
reflex-cache = let
|
|
|
|
inherit (inputs.self.packages.${system}) reflex-cache;
|
2022-03-21 22:42:02 +02:00
|
|
|
in mkShell {
|
|
|
|
packages = [
|
2022-03-14 00:42:29 +02:00
|
|
|
reflex-cache.dependencyEnv
|
|
|
|
];
|
2022-03-21 22:42:02 +02:00
|
|
|
|
2022-03-22 00:11:36 +02:00
|
|
|
tools = [
|
|
|
|
pkgs.poetry
|
|
|
|
];
|
2022-03-14 00:13:53 +02:00
|
|
|
|
2022-03-21 22:42:02 +02:00
|
|
|
env.PYTHON = reflex-cache.dependencyEnv.interpreter;
|
2022-03-14 00:42:29 +02:00
|
|
|
};
|
2022-03-14 00:13:53 +02:00
|
|
|
};
|
|
|
|
}
|