2022-03-21 22:41:18 +02:00
|
|
|
{ pkgs, inputs, ... }@args:
|
2022-03-14 00:13:53 +02:00
|
|
|
let
|
|
|
|
inherit (pkgs) system;
|
|
|
|
dream2nix = inputs.dream2nix.lib2.init {
|
|
|
|
systems = [ system ];
|
|
|
|
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-03-14 00:13:53 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = {
|
|
|
|
ghost = (let version = "4.39.0"; in dream2nix.makeFlakeOutputs {
|
|
|
|
source = pkgs.fetchzip {
|
|
|
|
url = "https://github.com/TryGhost/Ghost/releases/download/v${version}/Ghost-${version}.zip";
|
|
|
|
sha256 = "sha256-9XZCe1nd+jeinJHEAbZfLWAiEZK4QqdRxgE2byBkuAc=";
|
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
}).packages.${system}.ghost;
|
|
|
|
|
|
|
|
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };
|
|
|
|
|
|
|
|
minio-console = pkgs.callPackage ./servers/minio-console { };
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
sips = pkgs.callPackage ./servers/sips { };
|
|
|
|
};
|
|
|
|
|
|
|
|
devShells = {
|
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
|
|
|
};
|
|
|
|
}
|