This commit is contained in:
Audrey 2025-03-28 01:33:05 -07:00
parent 2cb16d2764
commit 74d4a41162
1 changed files with 2 additions and 2 deletions

View File

@ -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" ];
};