mirror of
https://github.com/openclaw/nix-openclaw.git
synced 2026-07-24 21:25:23 -04:00
Hardcoded /bin/mkdir in activation script breaks NixOS deployments #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @elsbrock on GitHub (Jan 30, 2026).
Description
The Home Manager module hardcodes
/bin/mkdirin the activation script, which breaks on NixOS systems where/bin/mkdirdoes not exist (only/bin/shis guaranteed on NixOS).Location
File:
nix/modules/home-manager/openclaw.nixThe
openclawDirsactivation script uses/bin/mkdir -p ...and theopenclawConfigFilesscript uses/bin/ln -sfn ....Error
Reproduction
home-manager switchFix
Replace absolute paths with bare commands (available on PATH during HM activation):
Or use explicit Nix store paths like
${pkgs.coreutils}/bin/mkdir.Workaround
@imrane commented on GitHub (Jan 30, 2026):
I just hit this right now and was coming to post this
@sookochoff commented on GitHub (Jan 30, 2026):
This was identified a couple weeks ago. Been hoping for a fix since https://github.com/openclaw/nix-openclaw/issues/5
@gudnuf commented on GitHub (Jan 31, 2026):
This seems to be fixed now btw
@joshp123 commented on GitHub (Feb 3, 2026):
[🤖 this message brought to you by codex] should be fixed in
b2721d72(HM activation uses run + coreutils). Closing for now — come and yell at me in #golden-path-deployments on discord if you're still having issues! Stability work continues; we are making this better every week.