switch mpv to managed settings

This commit is contained in:
Noah Masur 2023-03-11 14:14:45 -05:00
parent 42a5ad40de
commit 2aea76c0e3

View File

@ -12,12 +12,19 @@
config = lib.mkIf (config.gui.enable && config.media.enable) {
home-manager.users.${config.user} = {
home.packages = with pkgs; [
mpv # Video viewer
sxiv # Image viewer
mupdf # PDF viewer
zathura # PDF viewer
];
# Video player
programs.mpv = {
enable = true;
bindings = { };
config = { image-display-duration = 2; };
scripts = [ pkgs.mpvScripts.autoload ];
};
# Set default for opening PDFs
xdg.mimeApps = {
associations.added = {