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:
14 files changed
+52
-82
No files matched your search
@@ -2,8 +2,6 @@
|
||||
# login on the screen (tty1, and tty2-6 through its autovt@ alias); this file sorts first, so it wins.
|
||||
enable systemd-networkd.service
|
||||
enable systemd-resolved.service
|
||||
enable systemd-oomd.service
|
||||
enable nftables.service
|
||||
enable sshd.service
|
||||
enable getty@.service
|
||||
enable agent-setup@.service tty1 ttyS0
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user