mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
49 lines
648 B
Nix
49 lines
648 B
Nix
# Tumbler
|
|
{ config, pkgs, lib, ... }:
|
|
let
|
|
|
|
cfg = config.services.tumbler;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
(lib.mkRemovedOptionModule
|
|
[ "services" "tumbler" "package" ]
|
|
"")
|
|
];
|
|
|
|
meta = with lib; {
|
|
maintainers = with lib.maintainers; [ ] ++ lib.teams.pantheon.members;
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.tumbler = {
|
|
|
|
enable = lib.mkEnableOption "Tumbler, A D-Bus thumbnailer service";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs.xfce; [
|
|
tumbler
|
|
];
|
|
|
|
services.dbus.packages = with pkgs.xfce; [
|
|
tumbler
|
|
];
|
|
|
|
};
|
|
|
|
}
|