Skip to content

Instantly share code, notes, and snippets.

View lucasshiva's full-sized avatar

Lucas Silva lucasshiva

View GitHub Profile
@sini
sini / host-aspect-settings.md
Last active June 26, 2026 19:22
Typed per-aspect settings in Den — a how-to for giving shared aspects per-host knobs (module-system pattern + the gen-aspects first-class cascade)

Typed per-aspect settings in Den

A how-to for giving shared aspects per-host knobs. If you build configurations with Den (or any dendritic / aspect-oriented Nix setup), this guide shows how to let an aspect expose a few typed values — a disk device id, a kernel optimization target, a BGP AS number — that each host fills in, without forking the aspect.

It is written to be replicated in your own configuration, not just read as a description of one repo. It has two parts:

#!/usr/bin/env sh
# SPDX-License-Identifier: Beerware
# Script to automate downloading and installing the latest version of MusicBee
# If anything goes wrong/breaks, let me know so I can fix it!
set -eu
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/MusicBee"
installation_location="$WINEPREFIX/drive_c/Program Files (x86)/MusicBee/"