-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompatible.nix
50 lines (49 loc) · 1.03 KB
/
compatible.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
40
41
42
43
44
45
46
47
48
49
50
# This is for compatibility of (Pure Nix without flake-parts framework) users
# This configuration method lacks of option type check, which based on flake-parts module system.
{
withSystem,
inputs,
self,
...
}:
{
flake.configure =
{
localFlake,
nodes,
cache ? "./secrets/cache",
identity,
extraRecipients ? [ ],
}:
let
inherit (inputs.nixpkgs) lib;
in
{
# for nixosSystem
inherit cache;
app = lib.mapAttrs (
system: config':
lib.genAttrs
[
"renc"
"edit"
]
(
app:
import ./apps/${app}.nix {
inherit
nodes
identity
extraRecipients
cache
lib
;
inherit (withSystem system ({ pkgs, ... }: pkgs))
pkgs
;
package = self.packages.${system}.default;
}
)
) localFlake.allSystems;
};
}