nixpkgs/nixos/modules/services/desktops/gnome3/gnome-disks.nix
2017-05-06 19:40:37 +02:00

42 lines
668 B
Nix

# GNOME Disks daemon.
{ config, pkgs, lib, ... }:
with lib;
let
gnome3 = config.environment.gnome3.packageSet;
in
{
###### interface
options = {
services.gnome3.gnome-disks = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable GNOME Disks daemon, a service designed to
be a UDisks2 graphical front-end.
'';
};
};
};
###### implementation
config = mkIf config.services.gnome3.gnome-disks.enable {
environment.systemPackages = [ gnome3.gnome-disk-utility ];
services.dbus.packages = [ gnome3.gnome-disk-utility ];
};
}