-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
52 lines (49 loc) · 942 Bytes
/
default.nix
File metadata and controls
52 lines (49 loc) · 942 Bytes
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
51
52
let
sources = import ./npins;
pkgsRaw = import sources.nixpkgs {
config = {
allowUnfree = true;
};
};
lib = pkgsRaw.lib;
overlays = import ./pkgs/overlays.nix { inherit lib; };
pkgs = import sources.nixpkgs {
config = {
allowUnfree = true;
};
overlays = overlays;
};
readTree = import ./tools/readTree.nix { };
readHive =
hiveArgs:
readTree {
path = ./.;
args = hiveArgs;
# Filter out directories we don't want readTree to process
filter =
parts: args:
if
(builtins.elem (builtins.head parts) [
"secrets"
"npins"
".git"
])
then
args // { __readTree = false; }
else
args;
};
in
readTree.fix (
self:
(readHive {
inherit lib;
inherit sources;
pkgs = pkgs;
hive = self;
})
// {
inherit sources;
nixpkgs = pkgs;
}
)