home: configure mpv as default audio player

This commit is contained in:
colin 2022-10-09 18:37:19 -07:00
parent 9047aec7e9
commit 6a44432d3f
2 changed files with 12 additions and 1 deletions

View File

@ -122,7 +122,8 @@ in
md = "obsidian.desktop";
thumb = "org.gnome.gThumb.desktop";
video = "vlc.desktop";
audio = "vlc.desktop";
audio = "mpv.desktop";
# audio = "vlc.desktop";
in {
# HTML
"text/html" = [ www ];
@ -227,6 +228,7 @@ in
</opml>
'';
# gnome feeds RSS viewer
xdg.configFile."org.gabmus.gfeeds.json".text = builtins.toJSON {
feeds = sysconfig.sane.feeds.rss;
@ -498,6 +500,14 @@ in
package = import ./web-browser.nix pkgs;
};
mpv = {
enable = true;
config = {
save-position-on-quit = true;
keep-open = "yes";
};
};
# "command not found" will cause the command to be searched in nixpkgs
nix-index.enable = true;
} // cfg.programs;

View File

@ -90,6 +90,7 @@ let
libreoffice-fresh # XXX colin: maybe don't want this on mobile
lollypop
mesa-demos
{ pkg = mpv; dir = ".config/mpv/watch_later"; }
networkmanagerapplet
# settings (electron app). TODO: can i manage these settings with home-manager?