feat: update go-musicfox
This commit is contained in:
40
modules/cli/media/go-musicfox.nix
Normal file
40
modules/cli/media/go-musicfox.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user