mirror of
https://github.com/blazblue547-afk/ForgeOS.git
synced 2026-12-02 14:34:17 -05:00
Keep the base root read-only and move mutable Nix, home, var, opt, and usr-local state onto a writable FORGE_APPS partition. Normalize ext4 ownership during image creation so forge can manage user profiles through nix-daemon without owning system paths.
13 lines
429 B
Desktop File
13 lines
429 B
Desktop File
[Unit]
|
|
Description=Repair ForgeOS user home ownership
|
|
Documentation=man:systemd.service(5)
|
|
After=local-fs.target
|
|
Before=systemd-user-sessions.service getty.target forgeos-login@tty1.service forgeos-login@ttyS0.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/sh -c 'if [ -d /home/forge ]; then chown -R 1000:1000 /home/forge 2>/dev/null || true; chmod 700 /home/forge 2>/dev/null || true; fi'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|