summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/common.nix10
1 files changed, 8 insertions, 2 deletions
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;