feat: update go-musicfox

This commit is contained in:
2025-08-15 20:46:43 +08:00
parent 1da80c49db
commit df589d6797
5 changed files with 33 additions and 102 deletions

View File

@@ -0,0 +1,40 @@
{
config,
lib,
pkgs,
secrets,
...
}:
lib.my.makeSwitch {
inherit config;
optionName = "go-musicfox";
optionPath = [
"cli"
"media"
"go-musicfox"
];
config' = {
my = {
home = {
home.packages = with pkgs; [
playerctl
go-musicfox
];
sops.secrets.go-musicfox = {
sopsFile = secrets."go-musicfox.ini";
format = "binary";
path = "${config.my.home.xdg.configHome}/go-musicfox/go-musicfox.ini";
};
};
cli.media.mpd.enable = true;
persist.homeDirs = [
".config/go-musicfox/db"
];
persist.homeFiles = [
".config/go-musicfox/cookie"
];
};
};
}