-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta-configs.nix
91 lines (80 loc) · 2.41 KB
/
meta-configs.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
82
83
84
85
86
87
88
89
90
91
# This is the meta config file for nixpkgs and nix cli itself, including
# trusted keys for cachnix caches
{ config, pkgs, lib, ... }:
{
# Adopted from https://fnordig.de/til/nix/home-manager-allow-unfree.html,
# but we'll also enable it system-wide too.
nixpkgs = {
config = {
allowUnfree = true;
# https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = (_: true);
};
};
nix = {
gc = {
automatic = true;
randomizedDelaySec = "69min";
};
settings = {
# See https://nix.dev/manual/nix/latest/development/experimental-features
# for latest supported feature flags.
experimental-features = [
"auto-allocate-uids"
"ca-derivations"
"cgroups"
"configurable-impure-env"
"daemon-trust-override"
"dynamic-derivations"
"fetch-closure"
"fetch-tree"
"flakes"
"git-hashing"
"impure-derivations"
"local-overlay-store"
"mounted-ssh-store"
"nix-command"
"no-url-literals"
"parse-toml-timestamps"
"pipe-operators"
"read-only-local-store"
"recursive-nix"
"verified-fetches"
];
trusted-users = [
"root"
"gildedguy"
"ajhalili2006"
"nixos"
];
# just sync with trusted-users, but w/o root
allowed-users = [
"gildedguy"
"ajhalili2006"
"nixos"
];
trusted-public-keys = [
# devenv.sh
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
# my caches for nixos and nixpkgs related builds (including devenvs)
"ajhalili2006-nixos-builds.cachix.org-1:fA8HXvGR1i792D+CxL2iW/TQzUcyoW7zPUmC9Q4mQLg="
# the main cache itself
"andreijiroh-dev.cachix.org-1:7Jd0STdBOLiNu5fiA+AKwcMqQD2PA1j9zLDGyDkuyBo="
# recaptime.dev cache
"recaptime-dev.cachix.org-1:b0UBO1zONf6ceTIoR06AKhgid4ZOl5kxB/gOIdZ9J6g="
];
# also list them all too
trusted-substituters = [
"https://devenv.cachix.org"
"https://andreijiroh-dev.cachix.org"
"https://ajhalili2006-nixos-builds.cachix.org"
"https://recaptime-dev.cachix.org"
];
};
};
# Needed since Determinate Nix manages the main config file for system.
environment.etc."nix/nix.custom.conf" = {
source = ../misc/nix/nix.custom.conf;
mode = "0644";
};
}