mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 23:59:07 +02:00
17 lines
461 B
Nix
17 lines
461 B
Nix
{ ... }: {
|
|
flake.nixosModules.platform-sys-cache = { config, ... }: {
|
|
sops.secrets."garnix/token" = {
|
|
path = "/etc/nix/netrc";
|
|
mode = "0400";
|
|
};
|
|
nix.settings = {
|
|
substituters = [ "https://cache.garnix.io" ];
|
|
trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ];
|
|
netrc-file = "/etc/nix/netrc";
|
|
};
|
|
nix.extraOptions = ''
|
|
narinfo-cache-positive-ttl = 3600
|
|
'';
|
|
};
|
|
}
|