blob: b06a8ccc155331adc5f1a4d86f376035f7ce444a (
plain)
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
|
inputs: {
config,
lib,
...
}: {
nix = {
gc = {
automatic = true;
dates = "03:15";
options = "--delete-older-than 5d";
};
settings = {
auto-optimise-store = true;
extra-experimental-features = ["nix-command" "flakes"];
};
registry = lib.mapAttrs (_name: value: {flake = value;}) inputs;
nixPath =
lib.mapAttrsToList
(name: _value: "${name}=flake:${name}")
(lib.filterAttrs
(name: value: name != "self" && value.flake != null)
config.nix.registry);
};
}
|