Compare commits

...
3 Commits
Author SHA1 Message Date
kiskaadee 337d1a9014 chore: restore flake.lock to avoid herdr upstream build failure
Nix dry build introduced an update of flake.lock to a more recent
version of nixpkgs (unstable), where `herdr` (declared at ./home/dev.nix)
fails to bind with rustc due to a binutils upstream bug (.eh_frame_hdr
refers to overlapping FDEs).

This commit restores flake.lock to its previous version to allow
rebuilding from cached packages and prevent herdr blocker.
2026-10-01 01:18:55 -05:00
kiskaadee da8ba03f55 feat(security): implement dynamic trusted home Wi-Fi firewall via NetworkManager dispatcher
- Add initialization for `nixos-fw-home` iptables and ip6tables chains in `system/core.nix`.
- Configure a NetworkManager dispatcher script to automatically whitelist incoming traffic when connected to the trusted home SSID ("VICTORIA").
- Implement automatic fallback to strict default firewall rules upon disconnection or network switching.
- Update input revisions and lockfile (`flake.lock`) for `nixpkgs`, `home-manager`, `DankMaterialShell`, `dankcalendar`, and `antigravity-nix`.

This change removes development port friction when working on the trusted home network while preserving strict security boundaries on public or untrusted connections.
2026-10-01 00:55:14 -05:00
kiskaadee 8046f88d98 docs(antigravity): update second brain staging inbox path to 00-inbox
- Update staging inbox directory path in `docs/reference/antigravity.md` from `inbox/` to `00-inbox/`.
2026-10-01 00:43:56 -05:00
2 changed files with 51 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ Autonomous agents must **never** execute `nixos-rebuild switch`, `boot`, `test`,
Whenever an agent produces an artifact (`UserFacing: true`) or substantial analysis, a copy must be preserved in the Second Brain staging inbox: Whenever an agent produces an artifact (`UserFacing: true`) or substantial analysis, a copy must be preserved in the Second Brain staging inbox:
```text ```text
/home/kiskaadee/Brain/inbox/<descriptive-name>.md /home/kiskaadee/Brain/00-inbox/<descriptive-name>.md
``` ```
With frontmatter: With frontmatter:
+50
View File
@@ -19,6 +19,56 @@
networking.hostName = "laptop"; networking.hostName = "laptop";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# 🛡️ Dynamic Firewall for Trusted Home Wi-Fi
# Automatically marks the Wi-Fi interface as fully trusted (accepting all incoming ports)
# ONLY when connected to the trusted home Wi-Fi network ("VICTORIA"), removing the friction of
# managing arbitrary development ports. Restores the strict default firewall immediately upon
# disconnecting or connecting to any public / untrusted network.
networking.firewall.extraCommands = ''
iptables -N nixos-fw-home 2>/dev/null || true
iptables -C nixos-fw -j nixos-fw-home 2>/dev/null || iptables -I nixos-fw 1 -j nixos-fw-home
ip6tables -N nixos-fw-home 2>/dev/null || true
ip6tables -C nixos-fw -j nixos-fw-home 2>/dev/null || ip6tables -I nixos-fw 1 -j nixos-fw-home
'';
networking.networkmanager.dispatcherScripts = [
{
source = pkgs.writeShellScript "nm-trusted-wifi-firewall" ''
IFACE="$1"
ACTION="$2"
TRUSTED_SSID="VICTORIA"
IPT="${pkgs.iptables}/bin/iptables"
IP6T="${pkgs.iptables}/bin/ip6tables"
LOGGER="${pkgs.util-linux}/bin/logger"
manage_chain() {
local cmd="$1"
$cmd -N nixos-fw-home 2>/dev/null || true
$cmd -C nixos-fw -j nixos-fw-home 2>/dev/null || $cmd -I nixos-fw 1 -j nixos-fw-home
}
manage_chain "$IPT"
manage_chain "$IP6T"
if [ "$ACTION" = "up" ] && [ "$CONNECTION_ID" = "$TRUSTED_SSID" ]; then
$IPT -F nixos-fw-home
$IPT -A nixos-fw-home -i "$IFACE" -j ACCEPT
$IP6T -F nixos-fw-home
$IP6T -A nixos-fw-home -i "$IFACE" -j ACCEPT
$LOGGER -t nm-firewall "Connected to trusted network $TRUSTED_SSID: trusted interface $IFACE (all incoming ports accepted)"
elif [ "$ACTION" = "down" ] || [ -n "$CONNECTION_ID" -a "$CONNECTION_ID" != "$TRUSTED_SSID" ]; then
$IPT -F nixos-fw-home
$IP6T -F nixos-fw-home
$LOGGER -t nm-firewall "Untrusted or disconnected network ($CONNECTION_ID): restored strict firewall"
fi
'';
type = "basic";
}
];
# Regional and language settings # Regional and language settings
time.timeZone = "America/Bogota"; time.timeZone = "America/Bogota";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";