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

+10 -7
View File
@@ -25,7 +25,6 @@ Bootloader=systemd-boot
# - systemd-pam login sessions (pam_systemd): Claude's user manager and its
# D-Bus, which rootless podman needs
# - openssh-server ssh login for the user (keys only)
# - nftables-services the firewall
# - zram-generator-defaults compressed swap in RAM
# - podman, podman-docker containers, for all of Claude's toolchains (also as docker)
# - git-core, openssh-clients Claude Code uses git; it pushes over ssh
@@ -44,7 +43,6 @@ Packages=
shadow-utils
systemd-pam
openssh-server
nftables-services
zram-generator-defaults
podman
podman-docker
@@ -67,7 +65,7 @@ UnifiedKernelImageFormat=%i_%v
# (mkosi.extra/etc/machine-id is empty, so no boot counts as the first), no systemd-firstboot
# questions (agent-setup asks its own), freeing memory unused for an hour (damon_reclaim, in µs; the
# watermarks make it run whatever memory is free), so the host can take it back (virtio-balloon
# free page reporting), and KSPP hardening (the last four).
# free page reporting).
KernelCommandLine=
console=tty0
console=ttyS0,115200n8
@@ -79,10 +77,6 @@ KernelCommandLine=
damon_reclaim.wmarks_high=1000
damon_reclaim.wmarks_mid=999
damon_reclaim.wmarks_low=0
slab_nomerge
init_on_alloc=1
randomize_kstack_offset=on
page_alloc.shuffle=1
# Kernel modules in the initrd: only what finds and mounts the disks of a VM.
KernelInitrdModules=
virtio_blk
@@ -122,3 +116,12 @@ RemoveFiles=
/usr/lib/systemd/system/systemd-userdbd.*
/usr/lib/systemd/system/systemd-nsresourced.*
/usr/lib/systemd/system/sshd-keygen*
[Validation]
# Signs systemd-boot and the UKI for Secure Boot, and puts our keys on the ESP, where systemd-boot
# enrolls them at first boot if the firmware is in setup mode (no keys enrolled; in Proxmox, an EFI
# disk without pre-enrolled keys). mkosi.crt is the certificate; mkosi.key, its private key, is the
# SECUREBOOT_KEY secret of this repository, which the os workflow writes to mkosi.key.
SecureBoot=yes
SecureBootKey=mkosi.key
SecureBootCertificate=mkosi.crt