Files
nix-config/hardening/nixpaks/modules/network.nix
T
ryan4yin | 二花 707da35996 feat(nixpak): clear env, drop system bus, isolate network (#490)
* fix(nixpak): stop exposing the system D-Bus to apps
* fix(nixpak): bind only the PulseAudio socket
* feat(nixpak): run apps in a new session tied to the launcher
* feat(nixpak): start apps from an allowlisted environment
* feat(nixpak): isolate app networking with pasta
* fix(nixpak): keep Firefox on the host network

Assisted-by: Claude Code (claude-opus-5-5)
2026-10-31 16:39:25 +08:00

10 lines
375 B
Nix

# https://github.com/nixpak/pkgs/blob/master/pkgs/modules/network.nix
{
etc.sslCertificates.enable = true;
bubblewrap.network = true;
# pasta's default isolate mode gives the app its own loopback, so host
# services on 127.0.0.1 are out of reach. Proxying still works because
# mihomo runs in TUN mode, which sees pasta's outbound traffic.
pasta.enable = true;
}