Loading
nixos/esphome: replace DynamicUser with static system user
DynamicUser symlinks /var/lib/esphome to /var/lib/private/esphome, which breaks PlatformIO path resolution during compilation. Use a static system user instead. Also set PLATFORMIO_CORE_DIR and HOME to real paths, and enable NoNewPrivileges, PrivateTmp, RemoveIPC, RestrictSUIDSGID (previously implied by DynamicUser). Fixes: https://github.com/NixOS/nixpkgs/issues/339557