Commit e23212c90113

Vincent Demeester <vincent@sbr.pm>
2026-06-30 00:02:27
chore(imperative): remove obsolete wakasu host
Wakasu is no longer managed; dropping its leftover apply script and README.
1 parent 0b5cc5a
Changed files (2)
imperative
imperative/wakasu/apply.sh
@@ -1,86 +0,0 @@
-#!/usr/bin/env bash
-
-# Wakasu Post-Install Setup Script
-# Description: Post-installation commands for Fedora setup
-
-set -euo pipefail
-
-# Color output for better readability
-readonly RED='\033[0;31m'
-readonly GREEN='\033[0;32m'
-readonly YELLOW='\033[1;33m'
-readonly NC='\033[0m' # No Color
-
-# Logging functions
-log_info() {
-	echo -e "${GREEN}[INFO]${NC} $*"
-}
-
-log_warn() {
-	echo -e "${YELLOW}[WARN]${NC} $*"
-}
-
-log_error() {
-	echo -e "${RED}[ERROR]${NC} $*" >&2
-}
-
-setup.syncthing() {
-	log_info "Install syncthing..."
-	sudo dnf install -y syncthing
-
-	log_info "Enable syncthing user service..."
-	systemctl --user enable syncthing.service
-	systemctl --user start syncthing.service
-}
-
-setup.wireguard() {
-	log_info "Install wireguard..."
-	sudo dnf install -y wireguard-tools
-
-	log_info "Setup wireguard configuration..."
-	if [ -z "${WG_PRIVATE_KEY:-}" ]; then
-		log_warn "WG_PRIVATE_KEY not set, skipping wireguard configuration"
-		log_warn "Set WG_PRIVATE_KEY environment variable and re-run to configure"
-		return 0
-	fi
-
-	sudo tee /etc/wireguard/wg0.conf <<EOF
-[Interface]
-PrivateKey = ${WG_PRIVATE_KEY}
-## Client IP
-Address = 10.100.0.90/24
-
-## if you have DNS server running
-# DNS = 192.168.11.1
-
-[Peer]
-PublicKey = +H3fxErP9HoFUrPgU19ra9+GDLQw+VwvLWx3lMct7QI=
-
-## to pass internet trafic 0.0.0.0 but for peer connection only use 192.168.11.0/24, or you can also specify comma separated IPs
-AllowedIPs =  10.100.0.0/24
-
-Endpoint = 167.99.17.238:51820
-PersistentKeepalive = 25
-EOF
-
-	log_info "Wireguard configuration created at /etc/wireguard/wg0.conf"
-}
-
-setup.default_packages() {
-	log_info "Install default packages..."
-	sudo dnf install -y helix acpi
-}
-
-# Main setup function
-main() {
-	log_info "Starting Wakasu post-install setup..."
-
-	setup.default_packages
-	setup.syncthing
-	setup.wireguard
-
-	log_info "Post-install setup completed successfully!"
-}
-
-# Run main function
-main "$@"
imperative/wakasu/README.md
@@ -1,110 +0,0 @@
-# Wakasu Configuration
-
-Configuration scripts for the Wakasu system, a Fedora-based desktop.
-
-## Overview
-
-This directory contains idempotent configuration scripts for the Wakasu host, which runs Fedora and is not managed by NixOS.
-
-### System Information
-
-- **Hostname:** wakasu
-- **OS:** Fedora
-- **Type:** Desktop
-- **User:** vincent
-- **VPN Address:** 10.100.0.90/24
-
-## Files
-
-### `apply.sh`
-
-The main configuration script that sets up the system. This script is designed to be run multiple times safely (idempotent).
-
-## Setup Components
-
-The `apply.sh` script configures the following:
-
-### Default Packages
-- **helix** - Modern terminal-based text editor
-- **acpi** - Command-line utilities for ACPI (power management)
-
-### Syncthing
-- Installs Syncthing from Fedora repositories
-- Enables and starts systemd user service for user `vincent`
-- Enables loginctl lingering so service starts at boot
-- Syncthing will be available at http://localhost:8384
-
-### Wireguard VPN
-- Installs wireguard-tools package
-- Creates `/etc/wireguard/wg0.conf` with VPN settings
-- Connects to VPN endpoint at 167.99.17.238:51820
-- Assigns client IP: 10.100.0.90/24
-- Requires `WG_PRIVATE_KEY` environment variable
-- Gracefully skips configuration if private key is not provided
-
-## Usage
-
-### Running the Script
-
-From the repository root:
-
-```bash
-# Basic run (wireguard config will be skipped)
-sudo ./imperative/wakasu/apply.sh
-
-# With wireguard private key
-sudo WG_PRIVATE_KEY="your-private-key-here" ./imperative/wakasu/apply.sh
-```
-
-### First-Time Setup
-
-1. Ensure you have root/sudo access
-2. Have your wireguard private key ready (optional)
-3. Run the script
-
-### Updating Configuration
-
-Simply re-run the script. It's designed to be idempotent, meaning running it multiple times will bring the system to the desired state without causing issues.
-
-### Enabling Wireguard
-
-After running the script with `WG_PRIVATE_KEY`:
-
-```bash
-# Start wireguard
-sudo systemctl start wg-quick@wg0
-
-# Enable wireguard at boot
-sudo systemctl enable wg-quick@wg0
-
-# Check status
-sudo systemctl status wg-quick@wg0
-```
-
-### Managing Syncthing
-
-```bash
-# Check syncthing status
-systemctl --user status syncthing
-
-# Restart syncthing
-systemctl --user restart syncthing
-
-# View syncthing logs
-journalctl --user -u syncthing
-```
-
-## Default Packages Explained
-
-### Helix
-A modern, Kakoune/Neovim inspired editor with built-in LSP support and tree-sitter syntax highlighting. Provides a powerful terminal-based editing experience.
-
-### ACPI
-Utilities for monitoring battery, temperature, and power management on laptops. Useful for checking battery status and system power state.
-
-## Notes
-
-- The script uses `set -euo pipefail` for strict error handling
-- All setup functions are prefixed with `setup.`
-- Logging functions provide colored output for better readability
-- User-specific configuration is stored in the `USER_NAME` variable