{ user ? throw "user argument is required", home ? throw "home argument is required", }: { lib, pkgs, ... }: { home-manager.users.${user} = { programs.feh = { enable = true; buttons = { prev_img = null; next_img = null; zoom_in = 4; zoom_out = 5; }; themes.feh = [ "--auto-zoom" "--scale-down" "--borderless" "--draw-filename" "--image-bg" "black" "--conversion-timeout" "5" ]; }; xdg.mimeApps.defaultApplications = lib.attrsets.genAttrs [ "image/bmp" "image/gif" "image/jpeg" "image/jpg" "image/pjpeg" "image/png" "image/tiff" "image/x-bmp" "image/x-gray" "image/x-icb" "image/x-ico" "image/x-png" "image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "image/x-xbitmap" "image/x-xpixmap" "image/x-pcx" "image/svg+xml" "image/svg+xml-compressed" "image/vnd.wap.wbmp" ] (_: "feh.desktop"); }; }