Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-08 13:41:01 +01:00
parent 24ac4753eb
commit 8b23486d4a
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
{
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");
};
}