From 74d4a411621c2a33e9cdbed64190ec1559aa8a05 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Fri, 28 Mar 2025 01:33:05 -0700 Subject: [PATCH] fix that --- configuration-nixbsd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration-nixbsd.nix b/configuration-nixbsd.nix index 7674720..005c4f6 100644 --- a/configuration-nixbsd.nix +++ b/configuration-nixbsd.nix @@ -5,11 +5,11 @@ in { init.services.nix-key-setup = { description = "Generate a nix build signing key"; startType = "oneshot"; - startCommand = pkgs.writeScript "nix-key-setup" '' + startCommand = [ (pkgs.writeScript "nix-key-setup" '' test -f ${nixKey} && test -f ${nixKey}.pub && exit 0 || true mkdir -p "$(dirname "${nixKey}")" ${config.nix.package}/bin/nix-store --generate-binary-cache-key ${config.networking.hostName} ${nixKey} ${nixKey}.pub - ''; + '') ]; dependencies = [ "FILESYSTEMS" ]; before = [ "nix-daemon" ]; };