summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
5 daysAdd missing crond dependency for alpineAhmed Abdelhalim5-0/+26
5 daysFix restic install and add backup roleAhmed Abdelhalim17-0/+319
Co-Authored-By: Claude.ai
6 daysFix alpine cloudflaredAhmed Abdelhalim1-18/+14
The APK approach never existed AI made that up Co-Authored-By: Claude.ai
6 daysAdd alpine platform to supported rolesAhmed Abdelhalim3-0/+9
6 daysUpdate nginx install to install latest stableAhmed Abdelhalim4-5/+38
6 daysUpdate caddy to install latest stable versionAhmed Abdelhalim4-5/+38
8 daysRefactor and clean up codeAhmed Abdelhalim5-15/+23
8 daysRename backup -> mount as a roleAhmed Abdelhalim11-45/+45
9 daysRemove python as a vim dependencyAhmed Abdelhalim1-1/+0
9 daysFix pve-lxc-ssh to install ssh correctlyAhmed Abdelhalim1-52/+57
9 daysUpdate cgit view (remove owner) and example varsAhmed Abdelhalim3-2/+3
9 daysFix pushing to cgit locallyAhmed Abdelhalim7-5/+29
9 daysAdd cloudflare tunnel configurationsAhmed Abdelhalim10-0/+143
9 daysRefactor proxy setup on cgit to simplify setupAhmed Abdelhalim16-161/+3
9 daysInstall wakeonlan CLIAhmed Abdelhalim3-0/+24
9 daysFix deploying cgit locallyAhmed Abdelhalim5-6/+4
10 daysFix testing git service on alpineAhmed Abdelhalim3-2/+25
10 daysTest proxy/cgit setupAhmed Abdelhalim3-1/+12
10 daysAllow cgit to theoretically deploy to public URLAhmed Abdelhalim3-5/+22
10 daysUpdate git hostnameAhmed Abdelhalim1-0/+0
10 daysAdd pve-ssh support with hardeningAhmed Abdelhalim12-18/+123
10 daysRefactor pve cgit to use generic proxyAhmed Abdelhalim28-46/+170
This is refactoring the PoC for deploying cgit on pve, to now move to a more standard deployment with dedicated agnonstic proxy role/container
10 daysAdd python3 to lxc containers to enable ansible provisioningAhmed Abdelhalim1-0/+17
11 daysFix cgit role install on alpineAhmed Abdelhalim1-0/+7
11 daysRename services to use .home.arpa network instead .localAhmed Abdelhalim8-7/+5
11 daysUse multiple packages instead of loopsAhmed Abdelhalim1-4/+3
11 daysAdd note about GT750M not supported and impossible to work with hyprlandAhmed Abdelhalim1-10/+42
Co-Authored-By: Claude.ai
12 daysRe-implement gt750 role to just increase performance of nouveau driverAhmed Abdelhalim5-2/+56
Co-Authored-By: Claude.ai
12 daysReplace hyprland_nvidia boolean with a fact from the roleAhmed Abdelhalim7-8/+8
This to make the role have less configurations, and less prune to human errors
12 daysRemove the gt750m role after multiple attempts of fixing itAhmed Abdelhalim9-126/+2
Since this role has never worked properly, this state with updating the resolution and keeping the nouveau driver working with acceptable performance on external monitors
13 daysConfigure ipv6/prefer ipv4 switches for network (and all hosts)Ahmed Abdelhalim7-5/+22
13 daysInitial change, to make the role match the nvidia gtx 1060Ahmed Abdelhalim2-14/+10
Since the mac driver is still broken when connected to external monitors, this is yet another attempt at fixing the pleasantly apple quirky wifi and graphics to work on linux!
13 daysAdd tcpdump w/testingAhmed Abdelhalim10-0/+35
13 daysConfigure 2.4GHz for desktop, since 5GHz signal is too weakAhmed Abdelhalim1-0/+0
14 daysUpdate desktop monitor placementAhmed Abdelhalim1-0/+0
14 daysPrefer ipv4 for ansible ssh connectionsAhmed Abdelhalim1-0/+1
14 daysConfigure preference of ip family (ipv4 > ipv6)Ahmed Abdelhalim13-0/+25
14 daysFix ansible-distro-installAhmed Abdelhalim3-1/+4
The ansible-distro-install depends on using chroot as the connection `Failed to connect to the host via ssh: ssh: Could not resolve hostname /mnt: Name or service not known` moving the ansible_connection variable into the all group, overrides the connection automatically created for the inventory in the ansible-distro-install repo, causing the configure playbook to fail This reverts this change and define the connection on the inventory level
2026-07-12Fix nvidia driver on desktopAhmed Abdelhalim1-0/+12
The nvidia_gtx1060 role rebuilds the initramfs via mkinitcpio but never synced the result to the ESP that rEFInd actually boots from. The sync only happens automatically via a pacman hook on `linux` package upgrades, so a manual mkinitcpio rebuild (e.g. after changing this role's modprobe.d config) left rEFInd booting a stale initramfs - nouveau kept winning the race for the GPU until the next kernel upgrade happened to trigger the hook. Co-Authored-By: Claude.ai
2026-07-10Fix nvidia driver on macAhmed Abdelhalim4-4/+12
Co-authored-By: Claude.ai
2026-07-10Replace hyprland monitors with kanshi profilesAhmed Abdelhalim13-21/+63
2026-07-10Fix linting and testing gateway with dummy interfaceAhmed Abdelhalim5-5/+4
2026-07-10Extract logind lid configuration into it's own roleAhmed Abdelhalim24-36/+109
2026-07-09Fix IPv6 first-request failure caused by ICMPv6 RedirectsAhmed Abdelhalim3-12/+53
Root cause: Pi, the ISP router (FritzBox), and LAN clients share the same L2 segment. When Pi forwards a client's IPv6 packet to an external GUA destination, the Linux kernel detects that the ISP router is a "better" next-hop on the same link and sends an ICMPv6 Redirect (type 137) to the client. The client obeys the redirect and sends its first SYN to the ISP router directly — Pi never forwards the original packet. The ISP router applies per-device content filtering to the unmasqueraded client GUA and issues a RST. This produced the symptom of the first IPv6 request failing with "Connection reset by peer" every ~30-60 seconds (matching the FritzBox RA interval, after which clients re-resolve their default gateway). Diagnosis method: tcpdump with MAC addresses (-e flag) on Pi's end0 caught the ICMPv6 Redirect being sent immediately after the first SYN arrived. Inserting a DROP rule for icmpv6-type redirect at position 1 in ip6tables OUTPUT confirmed the fix — 0 failures across extended testing. Fix: - Drop ICMPv6 Redirect (type 137) in ip6tables OUTPUT as the first rule, before the ACCEPT rule, in both direct and VPN modes - Flush ip6tables OUTPUT chain on clear_rules() instead of per-rule -D deletion, which was fragile and left stale rules accumulating across mode switches (previously caused duplicate/conflicting OUTPUT rules) - Flush ip6tables nat POSTROUTING table instead of per-rule -D deletion for the same reason Also documents the ICMPv6 Redirect issue and IPv6 masquerade rationale in roles/gateway/README.md for future reference. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-07-09Fix IPv6 direct mode routing for LAN clientsAhmed Abdelhalim5-2/+2
- Remove static network_ipv6_gateway from LAN hosts so they pick up Pi's radvd RA (pref high) instead of FritzBox (pref low) - Add missing ip6tables FORWARD ACCEPT rule for new connections in direct mode (only ESTABLISHED was present, blocking new flows) - Flush ip6tables nat POSTROUTING table on clear instead of fragile per-rule -D deletion to prevent stale rule accumulation
2026-07-08Route IPv6 through WireGuard VPN via radvd and static gatewayAhmed Abdelhalim17-24/+68
Add radvd to gateway role to advertise Pi as high-preference IPv6 default router using the stable ULA prefix (fd1e:.../64). With FritzBox also sending RAs, devices end up with ECMP between Pi and FritzBox. To solve this, add network_ipv6_gateway (Pi's link-local) as a static route with metric 100 to all managed hosts — beats RA metric 425, ensuring all IPv6 default traffic goes through Pi. Fix IPv6 MASQUERADE in gateway-apply-rules: - Direct mode: add MASQUERADE on end0 (LAN devices use ULA source addresses not known to FritzBox, so Pi must NAT them) - FORWARD rules: restrict to RELATED,ESTABLISHED only — previously the broad ACCEPT rule passed un-NAT'd packets alongside masqueraded copies, causing duplicate SYNs, conntrack corruption, and RSTs - MASQUERADE/clear rules: match by interface not by source subnet (devices may use any source address, not just the ULA prefix) - VPN mode return traffic: explicitly restrict to wg+→end0 direction Add network_ipv6_gateway var (optional) to network role NM templates (ethernet, wifi, bridge) — injects a static IPv6 default route at metric 100 when set. Add rpi5 static route to FritzBox link-local so Pi keeps IPv6 after FritzBox RA is disabled. Force SSH to IPv4 for *.local hosts (AddressFamily inet) — prevents Ansible from hanging on mDNS returning multiple IPv6 addresses. Update gateway and pihole READMEs with two-step IPv6 setup process. Co-Authored-By: Claude.ai
2026-07-08Update gateway/ip configurations for the piAhmed Abdelhalim1-0/+0
2026-07-08Fix bridge network treated as new deviceAhmed Abdelhalim1-1/+1
2026-07-08Refactor network roleAhmed Abdelhalim9-56/+8
Remove static IPv6 support from network role — all hosts use SLAAC (method=auto). Simplifies NM templates, argument_specs, and resolved.conf. gateway sysctl accept_ra=2 is now unconditional when gateway_enabled. Co-authored-by: Claude.ai
2026-07-08Implement a working ipv6 on gatewayAhmed Abdelhalim4-3/+58