-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathflake-public-outputs.nix
39 lines (32 loc) · 1.03 KB
/
flake-public-outputs.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ withSystem, inputs, lib, ... }: {
imports = [
./flake-module.nix
./flake-docs-render.nix
];
systems = [ "x86_64-linux" "aarch64-linux" ];
flake = {
flakeModule = ./flake-module.nix;
lib.withPkgs = pkgs:
let effects = import ./effects/default.nix effects pkgs;
in effects;
lib.mkHerculesCI = import ./lib/mkHerculesCI.nix inputs;
modules = {
# Also available as `(lib.withPkgs pkgs).modules` aka
# `hci-effects.modules` when using flake-parts `perSystem` module argument.
effect = import ./effects/modules.nix;
};
overlay = final: prev: {
effects = lib.warn "pkgs.effects is deprecated. Use pkgs.hci-effects instead." final.hci-effects;
hci-effects = import ./effects/default.nix final.effects final;
};
templates = rec {
default = flake-parts;
flake-parts = {
path = ./templates/flake-parts;
description = ''
A demonstration of how to integrate effects with https://flake.parts.
'';
};
};
};
}