fix that
This commit is contained in:
parent
2cb16d2764
commit
74d4a41162
|
@ -5,11 +5,11 @@ in {
|
||||||
init.services.nix-key-setup = {
|
init.services.nix-key-setup = {
|
||||||
description = "Generate a nix build signing key";
|
description = "Generate a nix build signing key";
|
||||||
startType = "oneshot";
|
startType = "oneshot";
|
||||||
startCommand = pkgs.writeScript "nix-key-setup" ''
|
startCommand = [ (pkgs.writeScript "nix-key-setup" ''
|
||||||
test -f ${nixKey} && test -f ${nixKey}.pub && exit 0 || true
|
test -f ${nixKey} && test -f ${nixKey}.pub && exit 0 || true
|
||||||
mkdir -p "$(dirname "${nixKey}")"
|
mkdir -p "$(dirname "${nixKey}")"
|
||||||
${config.nix.package}/bin/nix-store --generate-binary-cache-key ${config.networking.hostName} ${nixKey} ${nixKey}.pub
|
${config.nix.package}/bin/nix-store --generate-binary-cache-key ${config.networking.hostName} ${nixKey} ${nixKey}.pub
|
||||||
'';
|
'') ];
|
||||||
dependencies = [ "FILESYSTEMS" ];
|
dependencies = [ "FILESYSTEMS" ];
|
||||||
before = [ "nix-daemon" ];
|
before = [ "nix-daemon" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue