nixpkgs/nixos/modules/services/desktops/tumbler.nix

51 lines
645 B
Nix
Raw Normal View History

2018-08-20 22:31:18 +02:00
# 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;
2019-07-13 13:42:05 +02:00
default = pkgs.xfce4-14.tumbler;
2018-08-20 22:31:18 +02:00
description = "Which tumbler package to use";
example = pkgs.xfce4-12.tumbler;
};
};
};
###### implementation
config = mkIf cfg.enable {
environment.systemPackages = [
tumbler
];
services.dbus.packages = [
tumbler
];
};
}