<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nixos-config/machines/enzo/default.nix, branch kusanagi-ollama-lan-firewall</title>
<subtitle>my nixos setup</subtitle>
<id>https://git.hwebs.info/nixos-config/atom?h=kusanagi-ollama-lan-firewall</id>
<link rel='self' href='https://git.hwebs.info/nixos-config/atom?h=kusanagi-ollama-lan-firewall'/>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/'/>
<updated>2026-08-04T22:05:42Z</updated>
<entry>
<title>common: parameterize LAN discovery interface</title>
<updated>2026-08-04T22:05:42Z</updated>
<author>
<name>yokai</name>
<email>accounts.8ef6c@simplelogin.com</email>
</author>
<published>2026-08-04T22:05:42Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=a7adbd5063fe7ab428d8174cb9b31bec2c6133d6'/>
<id>urn:sha1:a7adbd5063fe7ab428d8174cb9b31bec2c6133d6</id>
<content type='text'>
Let the shared LAN discovery module use each host's Wi-Fi interface instead of assuming kusanagi's wlp8s0 everywhere. Set kusanagi to wlp8s0 and enzo to wlp1s0.

Reuse the same setting for kusanagi's Ollama LAN firewall rule so the service opening stays tied to the declared LAN interface.

Assisted-by: OpenAI:gpt-5
</content>
</entry>
<entry>
<title>common: share LAN discovery settings</title>
<updated>2026-08-04T21:58:39Z</updated>
<author>
<name>yokai</name>
<email>accounts.8ef6c@simplelogin.com</email>
</author>
<published>2026-08-04T21:58:39Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=b47ca1475decf1a98f10231f0cbeebfb75e7f6ea'/>
<id>urn:sha1:b47ca1475decf1a98f10231f0cbeebfb75e7f6ea</id>
<content type='text'>
Move ping and Avahi/mDNS configuration into a shared LAN discovery module so kusanagi and enzo both publish their .local names, resolve each other on the LAN, and answer ping.

Keep mDNS scoped to the shared Wi-Fi interface instead of using Avahi's global firewall helper.

Assisted-by: OpenAI:gpt-5
</content>
</entry>
<entry>
<title>enzo: enable mDNS resolution for *.local LAN names</title>
<updated>2026-08-04T21:49:01Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-08-04T21:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=b9fd1ff561be58fa9d0fa03180a1a239e47550b5'/>
<id>urn:sha1:b9fd1ff561be58fa9d0fa03180a1a239e47550b5</id>
<content type='text'>
Kusanagi already advertises its hostname via Avahi, but enzo had no
multicast DNS resolver configured so kusanagi.local never resolved from
the laptop. Add avahi with nssmdns4 so the NSS host lookup chain
delegates to mDNS before giving up.

Assisted-by: pi-coding-agent:gpt-5.2
(cherry picked from commit beb8eedfb712fd31c456096a2426d92cb3a7fcff)
</content>
</entry>
<entry>
<title>profiles: extract shared sandbox profile for enzo + kusanagi</title>
<updated>2026-08-04T03:12:32Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-08-04T03:00:49Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=3df910d75fa98a7d0291e6b8c6889905c6088f64'/>
<id>urn:sha1:3df910d75fa98a7d0291e6b8c6889905c6088f64</id>
<content type='text'>
Move the yokai agent-sandbox account (user, ikai group, /srv/git drop dir,
scoped sudo de-escalation, and the local-clones workflow docs) out of
machines/enzo into a shared profiles/sandbox.nix that both machines import.

The only per-machine value is the human owner allowed to drop into the
sandbox, exposed as a `sandbox.owner` string option so the profile stays
username-agnostic (enzo: hwebs, kusanagi: henz). kusanagi gains the sandbox
it didn't have before; enzo's inline block collapses to one setting.

Assisted-by: claude-code:claude-opus-4-8
</content>
</entry>
<entry>
<title>enzo: add yokai sandbox user for coding agents</title>
<updated>2026-08-04T00:44:07Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-08-04T00:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=e9b9671d238bb3de779c0dbf4a518b41280be778'/>
<id>urn:sha1:e9b9671d238bb3de779c0dbf4a518b41280be778</id>
<content type='text'>
Add a bare `yokai` user (primary group `ikai`) for running coding agents
under a separate UID, isolated from hwebs's files and secrets. yokai has
no privileged group memberships and its own $HOME.

- systemd.tmpfiles creates /srv/git (2770 root:ikai) as a drop dir for the
  agent's local clones, outside ~ so /home/hwebs stays a sealed 700.
- security.sudo lets hwebs drop to yokai without a password (de-escalation
  only, scoped to runAs=yokai; root stays gated).
- hwebs joins the ikai group.

Extensive comments document the local-clones model: yokai owns its clone,
hwebs never runs git inside it, and commits are exchanged by fetching (or
via bundles) and landed on main with squash/rebase/interactive + signing.

Assisted-by: claude-code:claude-opus-4-8
</content>
</entry>
<entry>
<title>migration away from x-clip</title>
<updated>2026-08-03T18:01:21Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-08-03T17:59:24Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=9ca21e94b8ade285e749d54441c7d9115da5b522'/>
<id>urn:sha1:9ca21e94b8ade285e749d54441c7d9115da5b522</id>
<content type='text'>
- replace x-clip with wl-clipboard for wayland machines
- add TODOs I noticed while editing

Assisted-by: Claude Code:claude-opus-4-8
</content>
</entry>
<entry>
<title>enzo: add dev profile</title>
<updated>2026-08-03T18:01:21Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-08-01T15:27:09Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=cf5470e00e559b91c9905eff22c4def6ba52baa0'/>
<id>urn:sha1:cf5470e00e559b91c9905eff22c4def6ba52baa0</id>
<content type='text'>
Assisted-by: Claude:Opus-4.8
</content>
</entry>
<entry>
<title>(enzo) set up password system</title>
<updated>2026-07-31T12:35:44Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-07-31T12:35:44Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=2b2e0cc61537fefdddf81f982668d43fe89c0d2f'/>
<id>urn:sha1:2b2e0cc61537fefdddf81f982668d43fe89c0d2f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>enzo/kusanagi: idle suspend via swayidle</title>
<updated>2026-07-31T03:47:58Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-07-31T03:47:58Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=ac7152a1c531e611955861e3fc736e8f55039721'/>
<id>urn:sha1:ac7152a1c531e611955861e3fc736e8f55039721</id>
<content type='text'>
Bare niri has no power daemon watching for inactivity, so neither box
slept on its own. Add a user swayidle service bound to
graphical-session.target that fires after 15 min of no input:

  - enzo: suspend-then-hibernate (matches the existing lid-switch policy)
  - kusanagi: plain suspend-to-RAM, plus Wake-on-LAN on enp9s0 so it can
    be woken remotely while the Kavita/Immich/Ollama/NFS servers sleep

Assisted-by: Claude:claude-opus-4-8
</content>
</entry>
<entry>
<title>refactor: shared desktop profile for enzo + kusanagi</title>
<updated>2026-07-31T00:14:09Z</updated>
<author>
<name>Henry J. Webster</name>
<email>hwebs@hwebs.info</email>
</author>
<published>2026-07-31T00:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.hwebs.info/nixos-config/commit/?id=ae5ecbb4199844b2b7883d99cd04ef468a03247d'/>
<id>urn:sha1:ae5ecbb4199844b2b7883d99cd04ef468a03247d</id>
<content type='text'>
profiles/desktop.nix becomes a username-agnostic shared base (niri, dconf, the
dark-theme portal fix, greetd, pipewire base, gpg agent, graphics, Firefox with
blank-home/no-bookmarks prefs, common desktop tools, font base). Both hosts now
import it.

Per-host desktop config splits into machines/&lt;host&gt;/desktop.nix:
- enzo: Adwaita cursor + monospace, HiDPI console font, yambar, hwebs groups.
- kusanagi (new file): GNOME/X11, printing/avahi/udisks2, pro-audio
  (rtkit/jack/32-bit), gpg ssh support, richer fonts, Bibata cursor, henz
  desktop groups, waybar/nm-applet.

Shared profile is username-agnostic (enzo=hwebs, kusanagi=henz): shared desktop
tools moved to environment.systemPackages, per-user groups stay in machine
files. Firefox now owned by the shared profile, so its redundant enable is
dropped from profiles/apps.nix. Dark theme + Firefox tweaks now apply to both
hosts. Both configurations build.

Assisted-by: Claude:claude-opus-4-8
</content>
</entry>
</feed>
