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"; +}