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" ]
|
|
|
|
"")
|
|
|
|
];
|
|
|
|
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
2021-05-05 10:25:45 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-02 01:16:24 +01:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|