-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
nix.nix
33 lines (29 loc) · 894 Bytes
/
nix.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
{
nix = {
# nix gc works slightly differently on darwin, so we need to adjust the
# interval such that it works properly here.
gc.interval = {
Hour = 3;
Minute = 15;
};
# we cannot use auto-optimise-store so we do this instead
# https://github.com/NixOS/nix/issues/7273
optimise.interval = [
{
Hour = 3;
Minute = 45;
}
];
# we add more platforms here because of the limited number of darwin
# maintainers that exist, thus meaning less working packages for darwin.
settings.extra-platforms = [
"aarch64-darwin"
"x86-64-darwin"
];
};
# we also need to enable the nix-daemon service to ensure that nix is
# always running in the background.
services.nix-daemon.enable = true;
# use 'nix run github:LnL7/nix-darwin#darwin-uninstaller' instead
system.includeUninstaller = false;
}