Commit graph

40 commits

Author SHA1 Message Date
Danny
cda9c4cf0f sunken-ship: drop python-telegram-bot from fitness-bot pythonEnvs
bot.py was deleted upstream — neither prod nor shipyard launches a
polling bot anymore. server.py only needs python-dotenv + aiohttp.
Also refresh the prod section's comment + service description to
reflect the Mini-App-only architecture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 11:51:20 +02:00
DannyDannyDanny
b0c8664f5c docs: update stale dotfiles/nixos flake paths 📝
Stage 4f cleanup. The flake moved from ~/dotfiles/nixos/ to ~/dotfiles/
in 88c5139; docs and install scripts hadn't been refreshed. Point all
rebuild / flake references at the new root:

- AGENTS.md, README.md, server-quickstart.md, docs/server-installer-usb.md,
  docs/sunken-ship-wifi.md, nixos/readme.md — rebuild command paths.
- scripts/nixos-server-install.sh — auto-detect now looks for flake.nix
  at repo root (was nixos/flake.nix).
- scripts/post-install-provision.sh — first-rebuild hint path.

`nixos/hosts/<host>-hardware.nix` and friends stay where they are —
host-specific NixOS modules still live under nixos/; only the flake
entry-points + sops/ + vars/ + lib/ + modules/ + flake-modules/ moved.

nixos/readme.md rewritten to reflect the split (flake at root, per-host
modules under nixos/).
2026-04-20 20:28:05 +02:00
DannyDannyDanny
1c7794e904 fix: remove rusty-anchor Mac dependency from alacritty-sync-system-theme 🧹
rusty-anchor now switches themes independently via systemd timer + sunrise-sunset
API — no longer needs the Mac to push changes over SSH
2026-04-06 10:37:38 +02:00
DannyDannyDanny
74eb3a9c40 feat: rusty-anchor WoL, auto dark/light VT theme, wakeonlan on phantom-ship 🦀
- Enable Wake-on-LAN (magic packet) on rusty-anchor enp2s0 via systemd service
- Add vt-theme script to rusty-anchor: switches between Catppuccin Latte/Mocha
- Theme state persisted in /etc/vt-theme, applied on login via profile.d
- alacritty-sync-system-theme.sh now SSHes to rusty-anchor and pushes the
  macOS light/dark change (best-effort, non-blocking, skips if unchanged)
- Add wakeonlan to phantom-ship packages (wakeonlan 00:16:cb:87:20:ba)
2026-04-04 21:18:44 +02:00
DannyDannyDanny
245eb912a9 fix: find git/nix in PATH before cloning dotfiles in provisioning 🔧
Live installer strips PATH under sudo; extend PATH to include nix
profile dirs. Prefer git directly if available, fall back to nix run.
No chroot involved.
2026-03-31 14:30:25 +02:00
DannyDannyDanny
ef6e303a60 fix: run git from live system instead of chroot in provisioning 🔧
chroot had no nix in PATH; clone directly into /mnt/etc/dotfiles
from the live installer environment instead.
2026-03-31 14:28:35 +02:00
DannyDannyDanny
f327b8e868 feat: add post-install provisioning script 🛠️
Standalone script for completing provisioning after disko-install
(mounts installed system, clones dotfiles, installs SSH key, generates
hardware config). Run via curl for single-command provisioning.
2026-03-31 14:26:46 +02:00
DannyDannyDanny
c7793b68ea fix: detect already-open LUKS device in post-install provisioning 🔐
disko-install leaves the LUKS device open; re-opening failed with
"Device crypted already exists". Now detects the open mapper and
skips the redundant cryptsetup open call.
2026-03-31 14:24:58 +02:00
DannyDannyDanny
d4dbd73a8c feat(nixos): add phantom-ship host and streamline server installer
- New host config: phantom-ship.nix (SSH, auto-rebuild, nix-ld, Ethernet)
- Hardware stub: phantom-ship-hardware.nix (replaced by install script)
- Add phantom-ship to flake.nix with home-manager
- Install script now auto-provisions post-install:
  - Clones dotfiles to /etc/dotfiles
  - Installs SSH public key (SSH_PUBKEY_FILE env var)
  - Generates hardware config
  - Supports INSTALLER_HOSTNAME and INSTALLER_DISK env vars
- Fix bootstrap-install.sh default branch to main
- Update CLAUDE.md and server-installer-usb.md
2026-03-31 11:37:15 +02:00
DannyDannyDanny
afbc87be2b fix(macos): sync Neovim Catppuccin with system appearance
Write ~/.local/share/nvim_color_scheme from the same macOS Appearance probe as Alacritty; trim the nvim theme line read for robustness.

Made-with: Cursor
2026-03-25 14:51:31 +01:00
DannyDannyDanny
befe2f8a5b chore: remove unused Alacritty duplicates and dead script
Clean up legacy Alacritty theme files and an unreferenced theme-detection script, and fix README links to existing setup docs.

Made-with: Cursor
2026-03-24 10:20:10 +01:00
DannyDannyDanny
f9edde90e4 fix(macos): make Alacritty system-theme sync robust
New setup follow-up: ensure activation seeds a writable active-colors file and make theme sync always enforce the current system appearance.

Made-with: Cursor
2026-03-24 10:19:41 +01:00
DannyDannyDanny
b311e21d5b feat(macos): Alacritty follows system light/dark appearance
New setup — due for review after you run darwin-rebuild switch and
live with it for a few days. See CLAUDE.md (Alacritty) and
assets/alacritty/README.md.

- HM: import active-colors.toml + Catppuccin latte/mocha fragments
- nix-darwin: launchd.user.agents.alacritty-system-theme + PATH helper
- fish: background sync on Darwin; theme.sh no longer rebuilds for Alacritty
- Remove switch-alacritty-theme.sh (sed + darwin-rebuild per toggle)

Made-with: Cursor
2026-03-23 19:16:05 +01:00
DannyDannyDanny
9519804cc6 Set danny password on disk after install (chroot chpasswd) so it always works; re-prompt LUKS once
Made-with: Cursor
2026-03-08 19:05:06 +01:00
DannyDannyDanny
2fad0036ba Install script: prompt for danny password during install so console login works after reboot
Made-with: Cursor
2026-03-08 18:55:13 +01:00
DannyDannyDanny
c9247b8144 Bootstrap: run install script with stdin from /dev/tty so prompts work when piped from curl
Made-with: Cursor
2026-03-08 18:39:51 +01:00
DannyDannyDanny
52d60b9ce0 Install fixes: bootstrap-install.sh (curl one-liner), nix flags in script, mkDefault hostname, doc typos/verify
Made-with: Cursor
2026-03-08 18:06:54 +01:00
DannyDannyDanny
adae5e49f8 Add write-installer-iso-to-usb-on-server.sh; build script SSH key fix; doc
Made-with: Cursor
2026-03-08 16:49:34 +01:00
DannyDannyDanny
3e07a55f5b Add NixOS server installer USB (disko LUKS + WiFi, hostname prompt)
- disko-server.nix: LUKS + ESP + ext4 root layout for disko-install
- server-install: minimal NixOS config for new servers (hostname/WiFi via --system-config)
- installer-iso: custom minimal ISO with iwlwifi; build with nix build .#installer-iso
- scripts/nixos-server-install.sh: prompt hostname/disk, run disko-install
- docs/server-installer-usb.md: build, write USB, optional live/installed WiFi
- .gitignore: nixos/installer-wifi.nix; AGENTS.md + README.md notes

Made-with: Cursor
2026-03-08 16:16:25 +01:00
DannyDannyDanny
1fdce52239 Add make-ubuntu-usb.sh: write Ubuntu desktop ISO to USB (macOS)
Made-with: Cursor
2026-02-28 16:27:48 +01:00
DannyDannyDanny
d3e1fbb85d feat: add git branch clean up function 2026-02-25 12:57:20 +01:00
DannyDannyDanny
8ad0f5e1af Fix exception handling order and add WebSocket fallback attempt
- Fix exception handling to catch URLError before generic Exception
- Add WebSocket fallback attempt when HTTP endpoint fails
- Note: WebSocket fallback may not work as Firefox uses different protocol than CDP
- Known issue: HTTP /json/list endpoint closes connection even when DevTools shows connected
2026-02-01 15:06:50 +01:00
DannyDannyDanny
90565ae16a Add WebSocket fallback for tab listing when HTTP endpoint fails
- Add get_tabs_via_websocket() to query tabs via WebSocket when HTTP /json/list fails
- Update get_tabs_via_rdp() to try WebSocket fallback
- Update get_tab_html_async() to use WebSocket fallback for getting tab WebSocket URLs
- Known issue: HTTP endpoint may not respond even when DevTools shows connected
2026-02-01 15:05:54 +01:00
DannyDannyDanny
a228866b0c Fix asyncio deprecation warning and improve error messages
- Replace asyncio.get_event_loop() with asyncio.get_running_loop()
- Add better error messages when HTTP endpoint fails
- Show available tab IDs when tab not found
- Handle HTTP endpoint connection failures gracefully
2026-02-01 15:04:41 +01:00
DannyDannyDanny
b2b0d76e02 Update faf README with content command and troubleshooting
- Document new 'content' command for fetching HTML from tabs
- Add troubleshooting section for HTTP endpoint issues
- Add instructions for running from Nix development shell
- Note requirement for 'nix develop -c $(which fish)'
2026-02-01 15:03:47 +01:00
DannyDannyDanny
d9eccc8cdb Add websockets Python package to faf development environment
- Add websockets dependency to Python environment in flake.nix
- Required for WebSocket connections to Firefox tabs
2026-02-01 15:03:43 +01:00
DannyDannyDanny
2253bdde5d Add WebSocket support and content command to faf script
- Add WebSocket connection functions for Firefox Remote Debugging Protocol
- Implement CDP Runtime.evaluate protocol communication
- Add 'content' command to fetch HTML from tabs via WebSocket
- Add get_tab_html() function to orchestrate HTML retrieval
- Increase connection timeout for RDP requests
2026-02-01 15:03:42 +01:00
DannyDannyDanny
9aedc697d9 Rename firefox-tabs to f-around-firefox (faf) and add to PATH 2026-01-30 18:26:15 +01:00
DannyDannyDanny
91d35d1324 Shorten README to usage only 2026-01-30 18:24:28 +01:00
DannyDannyDanny
6dd73a4326 Add README to firefox-tabs script 2026-01-30 18:22:21 +01:00
DannyDannyDanny
ef4aa54100 Remove old firefox-tabs.py from scripts root 2026-01-30 18:19:43 +01:00
DannyDannyDanny
426bcaefe8 Reorganize firefox-tabs script into subfolder with flake.nix and plan.md 2026-01-30 18:17:57 +01:00
DannyDannyDanny
0e1e54efc3 Add firefox-tabs.py script 2026-01-30 18:17:49 +01:00
DannyDannyDanny
f72b7e6ddb Clean up trailing whitespaces
- Remove trailing whitespaces from all .nix files
- Remove trailing whitespaces from shell scripts
- Remove trailing whitespaces from README files
- Improves code consistency and follows best practices
2025-09-13 17:39:26 +02:00
DannyDannyDanny
6355fa64d3 feat: add theme status and toggle commands
- Add 'theme status' command to show current theme status across platforms
- Add 'theme toggle' command to switch between light and dark themes
- Improve toggle logic to read current theme from platform-specific sources
- Update documentation to include new commands
- Maintain backward compatibility with existing theme light/dark commands
2025-09-12 13:51:56 +02:00
DannyDannyDanny
072f197660 feat: unify theme switching with cross-platform script
- Create unified theme.sh script that works on both WSL and macOS
- Update fish alias to use new unified script instead of WSL-specific one
- Maintain backward compatibility with existing theme command
- Update documentation to reflect unified approach
- Script automatically detects platform and calls appropriate functionality
2025-09-12 13:41:49 +02:00
DannyDannyDanny
c8a7e3fb34 feat: introduce script for manual theme switching in Alacritty and update README for clarity 2025-09-12 13:33:33 +02:00
DannyDannyDanny
d7302fd9a6 refactor: simplify Alacritty theme synchronization with Nix configuration and remove obsolete scripts 2025-09-12 13:13:31 +02:00
DannyDannyDanny
bd9cd434d4 feat: add Alacritty light and dark themes + synchronization scripts 2025-09-12 12:57:36 +02:00
DannyDannyDanny
283a9f0c15 vimwiki: dth @ DK023900WSL 2022-10-13 15:57:13 +02:00