-
Notifications
You must be signed in to change notification settings - Fork 0
style: improve hydrateScript formatting #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,17 +11,25 @@ let | |
|
|
||
| mode = if host.isKyber then "gateway" else "client"; | ||
|
|
||
| hydrateScript = pkgs.replaceVars ./hydrate.sh ({ | ||
| sed = "${pkgs.gnused}/bin/sed"; | ||
| template = ./openclaw.template.json; | ||
| inherit mode; | ||
| } // (if host.isKyber then { | ||
| chromium = pkgs.chromium; | ||
| openclaw = "${homeDir}/.bun"; | ||
| } else { | ||
| chromium = "/unused"; | ||
| openclaw = "/unused"; | ||
| })); | ||
| hydrateScript = pkgs.replaceVars ./hydrate.sh ( | ||
| { | ||
| sed = "${pkgs.gnused}/bin/sed"; | ||
| template = ./openclaw.template.json; | ||
| inherit mode; | ||
| } | ||
| // ( | ||
| if host.isKyber then | ||
| { | ||
| chromium = pkgs.chromium; | ||
| openclaw = "${homeDir}/.bun"; | ||
| } | ||
| else | ||
| { | ||
| chromium = "/unused"; | ||
| openclaw = "/unused"; | ||
| } | ||
| ) | ||
| ); | ||
|
Comment on lines
+14
to
+32
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the reformatting improves readability by adding more whitespace, it also becomes quite verbose. A |
||
| in | ||
| { | ||
| # Hydrate OpenClaw config from .env secrets | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort the base attribute set alphabetically.
mode(viainherit mode;) should be ordered beforesedandtemplateto follow the Nix attribute sorting guideline. As per coding guidelines, “Sort attribute sets alphabetically in Nix files.”Suggested adjustment
📝 Committable suggestion
🤖 Prompt for AI Agents