blob: 4472ddff0a83fcadc01a10c980043cb0c1d80235 (
plain) (
blame)
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
|
{ lib, config, ... }:
let
cfg = config.vuizvui.profiles.tvl;
tvlShortDNS = [ "b" "cl" ];
in
{
options = {
vuizvui.profiles.tvl = {
enable = lib.mkEnableOption "tvl-specific tweaks";
};
};
config = lib.mkIf cfg.enable {
nix = {
binaryCachePublicKeys = lib.mkAfter [
"cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk="
];
binaryCaches = lib.mkAfter [
"https://cache.tvl.su"
];
};
networking.hosts = {
"49.12.129.211" = tvlShortDNS;
"2a01:4f8:242:5b21:0:feed:edef:beef" = tvlShortDNS;
};
};
}
|