From 5b8500ba96e7d728a6d2cbf1f722dd405a98514f Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 5 Aug 2024 16:37:17 +0200 Subject: [PATCH] home/tumblerd: init --- home/home.nix | 1 + home/services/tumblerd.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 home/services/tumblerd.nix diff --git a/home/home.nix b/home/home.nix index 23051d8..0db3666 100644 --- a/home/home.nix +++ b/home/home.nix @@ -52,6 +52,7 @@ in { ./services/screen-locker.nix # ./services/stalonetray.nix ./services/sxhkd.nix + ./services/tumblerd.nix ]; sops.defaultSopsFile = ../secrets/home.yaml; diff --git a/home/services/tumblerd.nix b/home/services/tumblerd.nix new file mode 100644 index 0000000..84a0908 --- /dev/null +++ b/home/services/tumblerd.nix @@ -0,0 +1,26 @@ +{ config, pkgs, lib, ... }: +let + package = pkgs.xfce.tumbler; +in +{ + systemd.user.services.tumblerd = { + Unit = { + Description = "Thumbnailing service"; + }; + + Service = { + Type = "dbus"; + BusName = "org.freedesktop.thumbnails.Thumbnailer1"; + ExecStart = "${package}/lib/tumbler-1/tumblerd"; + }; + }; + + xdg.dataFile = { + "dbus-1/services/org.xfce.Tumbler.Cache1.service".source = "${package}/share/dbus-1/services/org.xfce.Tumbler.Cache1.service"; + "dbus-1/services/org.xfce.Tumbler.Manager1.service".source = "${package}/share/dbus-1/services/org.xfce.Tumbler.Manager1.service"; + "dbus-1/services/org.xfce.Tumbler.Thumbnailer1.service".source = "${package}/share/dbus-1/services/org.xfce.Tumbler.Thumbnailer1.service"; + }; + + # TODO: configure properly + xdg.configFile."tumbler/tumbler.rc".source = "${package}/etc/xdg/tumbler/tumbler.rc"; +}