52 lines
1021 B
Nix
52 lines
1021 B
Nix
{
|
|
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/webp"
|
|
"image/x-bmp"
|
|
"image/x-pcx"
|
|
"image/x-png"
|
|
"image/x-portable-anymap"
|
|
"image/x-portable-bitmap"
|
|
"image/x-portable-graymap"
|
|
"image/x-portable-pixmap"
|
|
"image/x-tga"
|
|
"image/x-xbitmap"
|
|
"image/heic"
|
|
] (_: "feh.desktop");
|
|
};
|
|
}
|