2020-04-24 23:36:52 +00:00
|
|
|
# Tumbler
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.tumbler;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
2024-09-19 14:19:46 +00:00
|
|
|
(lib.mkRemovedOptionModule
|
2020-04-24 23:36:52 +00:00
|
|
|
[ "services" "tumbler" "package" ]
|
|
|
|
"")
|
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ ] ++ lib.teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.tumbler = {
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
enable = lib.mkEnableOption "Tumbler, A D-Bus thumbnailer service";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs.xfce; [
|
|
|
|
tumbler
|
|
|
|
];
|
|
|
|
|
|
|
|
services.dbus.packages = with pkgs.xfce; [
|
|
|
|
tumbler
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|