-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnix-settings.nix
81 lines (70 loc) · 2.29 KB
/
nix-settings.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
{
lib,
stdenv,
inputs,
...
}:
{
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
registry = {
system.flake = inputs.self;
nixpkgs.flake = inputs.nixpkgs;
home.flake = inputs.home;
};
settings = lib.mkMerge [
{
keep-outputs = true;
keep-derivations = true;
keep-going = true;
builders-use-substitutes = true;
allow-unsafe-native-code-during-evaluation = true;
accept-flake-config = true;
http-connections = 0;
flake-registry = __toFile "begone-evil.json" (__toJSON {
flakes = [ ];
version = 2;
});
experimental-features = [
"auto-allocate-uids"
"ca-derivations"
# "configurable-impure-env"
"dynamic-derivations"
"flakes"
"nix-command"
];
max-jobs = "auto";
trusted-substituters = [
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store?priority=10"
"https://mirror.sjtu.edu.cn/nix-channels/store?priority=10"
"https://mirrors.ustc.edu.cn/nix-channels/store?priority=15"
"https://mirrors.cernet.edu.cn/nix-channels/store?priority=15"
"https://mirrors.cqupt.edu.cn/nix-channels/store?priority=15"
"https://mirror.iscas.ac.cn/nix-channels/store?priority=15"
"https://mirror.nju.edu.cn/nix-channels/store?priority=15"
"https://mirrors4.sau.edu.cn/nix-channels/store?priority=15"
"https://nix-mirror.freetls.fastly.net?priority=11"
"https://cache.nixos.org?priority=12"
"https://nix-community.cachix.org?priority=13"
"https://nixpkgs-wayland.cachix.org"
"https://cache.lix.systems"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
trusted-users = [
"root"
"moni"
"zero"
];
use-xdg-base-directories = true;
}
(lib.mkIf (stdenv.isDarwin && stdenv.isAarch64) { extra-platforms = "x86_64-darwin"; })
(lib.mkIf stdenv.isDarwin {
sandbox = "relaxed";
auto-allocate-uids = true;
})
];
}