From dd47581a5f347ec8070abbd5eee690d599ee95ed Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 22 Oct 2024 17:49:08 +0200 Subject: Create nix store binary cache from bismuth for slower machines Signed-off-by: Mel --- modules/common.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/common.nix b/modules/common.nix index e7de738..f586579 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -1,4 +1,4 @@ -{ config, pkgs, unstablePkgs, auxiliaryPkgs, ... }: +{ me, config, lib, pkgs, unstablePkgs, auxiliaryPkgs, ... }: { imports = [ @@ -13,7 +13,13 @@ boot.kernelPackages = pkgs.linuxPackages_latest; - nix.settings.experimental-features = [ "flakes" "nix-command" ]; + nix.settings = { + experimental-features = [ "flakes" "nix-command" ]; + } // lib.optionalAttrs (me != "bismuth") { + # add the bismuth binary cache, if we're not bismuth; + substituters = [ "http://bismuth:5000" ]; + trusted-public-keys = [ "bismuth-1:XW9nsNsccipbmdfchyb3YIIWNT058iSpHLwlj1xgB7A=" ]; + }; services.envfs.enable = true; virtualisation.libvirtd.enable = true; -- cgit 1.4.1