home/tumblerd: init

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-05 16:37:17 +02:00
parent d13e77a4b6
commit 5b8500ba96
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 27 additions and 0 deletions

View File

@ -52,6 +52,7 @@ in {
./services/screen-locker.nix
# ./services/stalonetray.nix
./services/sxhkd.nix
./services/tumblerd.nix
];
sops.defaultSopsFile = ../secrets/home.yaml;

View File

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