Files
nix-config/home/linux/gui/base/go-musicfox/default.nix
T
Ryan Yin ef61c458e6 chore(go-musicfox): declare config.toml and reset it on rebuild
Manage ~/.config/go-musicfox/config.toml declaratively: the upstream default plus the mpv engine, ~/Music download dir, 2 GiB cache and cover art.

The app rewrites the file with a temp file plus rename, which would replace a plain symlink, so use force = true like fcitx5's profile: the repo copy is restored on every rebuild and runtime edits are ephemeral. Runtime data and state stay on the persistent volume.
2026-10-02 14:39:19 +08:00

13 lines
509 B
Nix

{ ... }:
{
# go-musicfox rewrites config.toml at runtime (in-app theme switch, `musicfox
# upgrade-config`) with a temp file plus rename, which would replace a plain
# symlink with a regular file. Same approach as fcitx5's `profile`: force the
# declarative copy back on every activation. Runtime edits persist until the
# next rebuild and are then reset; copy them back here manually to keep them.
xdg.configFile."go-musicfox/config.toml" = {
source = ./config.toml;
force = true;
};
}