diff --git a/system/common.nix b/system/common.nix index d8d152a..4e7f839 100644 --- a/system/common.nix +++ b/system/common.nix @@ -78,11 +78,18 @@ options = "--delete-older-than 30d"; }; - # enable flakes! - settings.experimental-features = [ - "nix-command" - "flakes" - ]; + settings = { + # enable flakes! + experimental-features = [ + "nix-command" + "flakes" + ]; + + # Use muffin server as a binary cache + substituters = [ "https://nix-cache.sigkill.computer" ]; + trusted-public-keys = [ "nix-cache.sigkill.computer-1:ONtQC9gUjL+2yNgMWB68NudPySXhyzJ7I3ra56/NPgk=" ]; + netrc-file = "${./secrets/nix-cache-netrc}"; + }; }; # kernel options diff --git a/system/secrets/nix-cache-netrc b/system/secrets/nix-cache-netrc new file mode 100644 index 0000000..cee0ea5 Binary files /dev/null and b/system/secrets/nix-cache-netrc differ