From 4c04e5b0a28407d1dceab9d1f63f0757e3185457 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 6 Apr 2026 14:21:43 -0400 Subject: [PATCH] use my own nix cache --- system/common.nix | 17 ++++++++++++----- system/secrets/nix-cache-netrc | Bin 0 -> 127 bytes 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 system/secrets/nix-cache-netrc 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 0000000000000000000000000000000000000000..cee0ea5fb9488f82241c9de40bb4c5f4afc9dd61 GIT binary patch literal 127 zcmZQ@_Y83kiVO&0kUV)+@-=h#J4<8tjLxoU&lw#Z^NKG!Dd$XZR$VFb@98xGA?N#w z+ZHUejZlc6yg%WIpy`>EbB|7^ZIP;2^K$0DU!Fc^&sMJP;cu4l&h1^mom}_irP@{g kclQJjhi7!ZQ~9vZ?t10)%SUFWi3qEfJ1`q{?E0h$02o#~lK=n! literal 0 HcmV?d00001