chore: simplify image configuration

Drop the custom firewall, PS1, oomd and nftables overrides, trim sysctl
settings, and add the Secure Boot certificate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-16 19:40:51 +01:00
1 parent 9245b26500
commit bbd0364792
14 files changed
+52 -82

No files matched your search

@@ -8,8 +8,6 @@ After=network-online.target user@1000.service agent-boot.service
[Service]
User=claude
WorkingDirectory=~
# In user.slice, so systemd-oomd kills it (or Claude's containers), not the system (user.slice.d).
Slice=user.slice
Environment=CLAUDE_CONFIG_DIR=/var/lib/agent/claude XDG_RUNTIME_DIR=/run/user/1000
ExecStart=/usr/bin/claude remote-control --name %H
Restart=always
@@ -1,6 +0,0 @@
# Load our firewall (/usr/lib/agent/firewall.nft) instead of /etc/sysconfig/nftables.conf.
[Service]
ExecStart=
ExecStart=/usr/sbin/nft -f /usr/lib/agent/firewall.nft
ExecReload=
ExecReload=/usr/sbin/nft -f /usr/lib/agent/firewall.nft
@@ -1,7 +0,0 @@
# systemd-oomd for Claude and its containers: when they run the VM out of memory, kill the cgroup
# responsible before the VM thrashes on zram swap or the kernel's OOM killer picks sshd.
[Slice]
# Memory pressure above 60% for 30s: kill the cgroup reclaiming the most memory.
ManagedOOMMemoryPressure=kill
# Swap over 90% full: kill the cgroup using the most swap.
ManagedOOMSwap=kill