mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-29 17:52:32 +01:00
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.
13 lines
509 B
Nix
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;
|
|
};
|
|
}
|