mirror of
https://github.com/openclaw/nix-openclaw.git
synced 2026-07-25 05:35:30 -04:00
Missing systemd.unitName at top level breaks default instance on Linux #14
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 top-level
systemdoption only definesenable, but the default instance logic copies the entirecfg.systemdobject expecting bothenableandunitName. This causes an attribute error when using the implicit default instance (without explicitinstancesconfiguration).Location
File:
nix/modules/home-manager/openclaw.nixTop-level systemd option only has
enable:Default instance copies it verbatim:
Instance template expects both
enableandunitName:Error
Reproduction
instancesattr)inst.systemd.unitNameFix
Add
unitNameto the top-levelsystemdoptions:The same issue likely applies to
launchd.label.Workaround
Use explicit instances: