mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
pantheon: init a 5.0
This commit is contained in:
parent
2530372351
commit
78da8d668b
129 changed files with 5013 additions and 91 deletions
50
nixos/modules/services/desktops/tumbler.nix
Normal file
50
nixos/modules/services/desktops/tumbler.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue