-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
81 lines (62 loc) · 1.76 KB
/
flake.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
description = "Miscellaneous custom packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust.url = "github:oxalica/rust-overlay";
rust.inputs.nixpkgs.follows = "nixpkgs";
crane.url = "github:ipetkov/crane";
gomod2nix.url = "github:nix-community/gomod2nix";
gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
gomod2nix.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, ... }@inputs:
let
lib = import ./lib {
lib = import ./flake-lib.nix { inherit nixpkgs; };
};
mergeFlakeOutputs =
lib.foldMap (file: import file (inputs // { inherit lib; }));
flakeOverlays = [ ];
buildFlakeFrom = files: lib.recursiveUpdate
(mergeFlakeOutputs files)
{
inherit lib;
overlays.default = lib.pipe self.overlays [
(lib.filterAttrs (n: _: n != "default"))
builtins.attrValues
(o: o ++ flakeOverlays)
lib.composeManyExtensions
];
};
in
buildFlakeFrom [
./dependencies/python
./dependencies/lua
./deploy/aztfexport
./deploy/org-formation
./databases/postgres
./databases/sqlite
./editors/language-server
./editors/formatter
./media/video
./network/storage
./network/tunnel
./utils/bluetooth
./utils/email
./utils/exif
./utils/generators
./utils/shell
./utils/writers
./utils/wayland
./scripts/darwin
./scripts/jujutsu
./scripts/nix
./scripts/pandoc
./scripts/sync
./scripts/system
./scripts/text
./servers/caddy
./servers/oracle-cloud-agent
];
}