feat(image): add atomic app layer

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.
This commit is contained in:
blazblue547-afk committed 2026-06-17 21:01:31 -04:00
1 parent eb8038ef4c
commit 2e202eae01
17 files changed
+496 -71

No files matched your search

@@ -6,7 +6,7 @@ Before=systemd-user-sessions.service getty.target forgeos-login@tty1.service for
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'if [ -d /home/forge ]; then chown -R 1000:1000 /home/forge && chmod 700 /home/forge; fi'
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