dots/nixcfgs/users/js0ny/programs/media/lollypop.nix
2026-03-15 21:07:36 +00:00

19 lines
480 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
pkgs,
config,
...
}: let
username = config.home.username;
in {
# Note: lollypop is buggy with CJK filenames.
# 部分 CJK 文字会显示成 ??,可能和文件的编码有关?而且似乎是 GTK4 都会GNOME 全家桶的音乐播放器也有这个问题
home.packages = with pkgs; [lollypop];
dconf.settings = {
"org/gnome/Lollypop" = {
music-uris = [
"file:///home/${username}/Music"
];
notification-flag = 2;
};
};
}