2018-08-20 20:31:18 +00:00
|
|
|
# Tumbler
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.tumbler;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2019-11-04 21:43:27 +00:00
|
|
|
imports = [
|
2024-08-27 18:43:06 +00:00
|
|
|
(lib.mkRemovedOptionModule
|
2019-11-04 21:43:27 +00:00
|
|
|
[ "services" "tumbler" "package" ]
|
|
|
|
"")
|
|
|
|
];
|
|
|
|
|
2021-08-02 00:46:24 +00:00
|
|
|
meta = with lib; {
|
2024-08-27 18:43:06 +00:00
|
|
|
maintainers = with lib.maintainers; [ ] ++ lib.teams.pantheon.members;
|
2020-04-02 00:16:24 +00:00
|
|
|
};
|
|
|
|
|
2018-08-20 20:31:18 +00:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.tumbler = {
|
|
|
|
|
2024-08-27 18:43:06 +00:00
|
|
|
enable = lib.mkEnableOption "Tumbler, A D-Bus thumbnailer service";
|
2018-08-20 20:31:18 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2024-08-27 18:43:06 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2018-08-20 20:31:18 +00:00
|
|
|
|
2019-11-04 21:43:27 +00:00
|
|
|
environment.systemPackages = with pkgs.xfce; [
|
2018-08-20 20:31:18 +00:00
|
|
|
tumbler
|
|
|
|
];
|
|
|
|
|
2019-11-04 21:43:27 +00:00
|
|
|
services.dbus.packages = with pkgs.xfce; [
|
2018-08-20 20:31:18 +00:00
|
|
|
tumbler
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|