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