From 711865018d30631ca30a1d3307de0a81f1e9cc23 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 2 Mar 2024 22:13:04 +0000 Subject: [PATCH] /etc/nixos: don't link on '*-light' builds --- hosts/common/nix/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/common/nix/default.nix b/hosts/common/nix/default.nix index 8328572e..11fa530d 100644 --- a/hosts/common/nix/default.nix +++ b/hosts/common/nix/default.nix @@ -63,7 +63,10 @@ ]; # ensure new deployments have a source of this repo with which they can bootstrap. - environment.etc."nixos".source = ../../..; + # this however changes on every commit and can be slow to copy for e.g. `moby`. + environment.etc."nixos" = lib.mkIf config.sane.enableSlowPrograms { + source = ../../..; + }; systemd.services.nix-daemon.serviceConfig = { # the nix-daemon manages nix builders