If keys are stored into /nix/store, they are symlinked into /run/keys. Any chown/chmod calls then are made to the origin file, failing since it's part of /nix/store.
Possible solution would be to copy the keys, then chown call would work but we would also need to chmod.
If keys are stored into
/nix/store
, they are symlinked into/run/keys
. Any chown/chmod calls then are made to the origin file, failing since it's part of/nix/store
.Possible solution would be to copy the keys, then
chown
call would work but we would also need tochmod
.See https://github.com/NixOS/nixops/pull/661/files#r116222331 for initial discussion.