-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdefault.nix
39 lines (37 loc) · 1.01 KB
/
default.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
{ inputs, ... }:
{
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../pkgs { pkgs = final; };
modifications = _final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
custom-caddy = import ./custom-caddy.nix { pkgs = prev; };
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.unstable'
unstable-packages = final: _prev: {
master = import inputs.master {
inherit (final) system;
config.allowUnfree = true;
overlays = [
(_final: _prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
})
];
};
unstable = import inputs.unstable {
inherit (final) system;
config.allowUnfree = true;
overlays = [
(_final: _prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
})
];
};
};
}