-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnix.nix
38 lines (37 loc) · 1.09 KB
/
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
34
35
36
37
38
{
outputs,
pkgs,
system,
hostname,
...
}:
outputs.lib.mkFor system hostname {
common = {
nix = {
package = pkgs.nix;
settings = {
auto-optimise-store = true;
warn-dirty = false;
experimental-features = ["nix-command" "flakes" "pipe-operators"];
# TODO Set this in hyprland config
substituters = [
"https://cache.nixos.org/"
"https://hyprland.cachix.org"
"https://wezterm.cachix.org"
"https://cache.thalheim.io"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
"cache.thalheim.io-1:R7msbosLEZKrxk/lKxf9BTjOOH7Ax3H0Qj0/6wiHOgc="
];
};
};
};
systems.darwin = {
# aarch64-darwin can also run x86_64-darwin binaries with Rosetta 2,
# so we can use the same config for all Darwin systems.
nix.settings.extra-platforms = ["x86_64-darwin"];
};
}