mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
51 lines
645 B
Nix
51 lines
645 B
Nix
# Tumbler
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.tumbler;
|
|
tumbler = cfg.package;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.tumbler = {
|
|
|
|
enable = mkEnableOption "Tumbler, A D-Bus thumbnailer service";
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.xfce4-13.tumbler;
|
|
description = "Which tumbler package to use";
|
|
example = pkgs.xfce4-12.tumbler;
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [
|
|
tumbler
|
|
];
|
|
|
|
services.dbus.packages = [
|
|
tumbler
|
|
];
|
|
|
|
};
|
|
|
|
}
|