Commit 6c4692ed9bf4
Changed files (1)
systems
okinawa
systems/okinawa/extra.nix
@@ -343,10 +343,11 @@
GOOGLE_VERTEX_LOCATION = "us-east5";
};
- # Copy config file before start
+ # Copy config file before start (--remove-destination needed because
+ # the nix store source is read-only, so cp can't overwrite in place)
preStart = ''
mkdir -p /run/opencode/config/opencode
- cp ${opencode-config} /run/opencode/config/opencode/opencode.json
+ cp --remove-destination ${opencode-config} /run/opencode/config/opencode/opencode.json
'';
};