forked from mirrors/nixpkgs
53 lines
618 B
Nix
53 lines
618 B
Nix
# Tumbler
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.tumbler;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
(mkRemovedOptionModule
|
|
[ "services" "tumbler" "package" ]
|
|
"")
|
|
];
|
|
|
|
meta = {
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.tumbler = {
|
|
|
|
enable = mkEnableOption "Tumbler, A D-Bus thumbnailer service";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs.xfce; [
|
|
tumbler
|
|
];
|
|
|
|
services.dbus.packages = with pkgs.xfce; [
|
|
tumbler
|
|
];
|
|
|
|
};
|
|
|
|
}
|