zaphyra's git: nixfiles

zaphyra's nixfiles

commit 55e6161928f83e2a45ad4ab25865db612ed70ab9
parent 628c960fda94b5d663ec9e36e751604420724662
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 29 Jun 2025 19:44:40 +0200

config/home/zaphyra/programs: add `loupe`
1 file changed, 35 insertions(+), 0 deletions(-)
A
config/home/zaphyra/programs/loupe.nix
|
35
+++++++++++++++++++++++++++++++++++
diff --git a/config/home/zaphyra/programs/loupe.nix b/config/home/zaphyra/programs/loupe.nix
@@ -0,0 +1,35 @@
+{ lib, pkgs, ... }:
+
+{
+
+  home.packages = [ pkgs.loupe ];
+
+  xdg.mimeApps = {
+    enable = true;
+    defaultApplications = lib.genAttrs [
+      "image/jpeg"
+      "image/png"
+      "image/gif"
+      "image/webp"
+      "image/tiff"
+      "mage/bmp"
+      "image/svg+xml"
+      "image/svg+xml-compressed"
+      "image/avif"
+      "image/heic"
+    ] (name: [ "org.gnome.Loupe.desktop" ]);
+    associations.added = lib.genAttrs [
+      "image/jpeg"
+      "image/png"
+      "image/gif"
+      "image/webp"
+      "image/tiff"
+      "mage/bmp"
+      "image/svg+xml"
+      "image/svg+xml-compressed"
+      "image/avif"
+      "image/heic"
+    ] (name: [ "org.gnome.Loupe.desktop" ]);
+  };
+
+}