mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
50 lines
601 B
Nix
50 lines
601 B
Nix
# Tumbler
|
|
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
|
|
cfg = config.services.tumbler;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
(lib.mkRemovedOptionModule [ "services" "tumbler" "package" ] "")
|
|
];
|
|
|
|
meta = {
|
|
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; [
|
|
tumbler
|
|
];
|
|
|
|
services.dbus.packages = with pkgs; [
|
|
tumbler
|
|
];
|
|
|
|
};
|
|
|
|
}
|