* NixOS module for Udisks.

svn path=/nixos/trunk/; revision=27909
This commit is contained in:
Eelco Dolstra 2011-07-23 01:30:36 +00:00
parent 3a1b6266e4
commit 83846d8417
2 changed files with 39 additions and 0 deletions

View File

@ -62,6 +62,7 @@
./services/hardware/acpid.nix
./services/hardware/bluetooth.nix
./services/hardware/hal.nix
./services/hardware/udisks.nix
./services/hardware/pcscd.nix
./services/hardware/udev.nix
./services/logging/klogd.nix

View File

@ -0,0 +1,38 @@
# Udisks daemon.
{ config, pkgs, ... }:
with pkgs.lib;
{
###### interface
options = {
services.udisks = {
enable = mkOption {
default = false;
description = ''
Whether to enable support for Udisks, a DBus service that
allows applications to query and manipulate storage devices.
'';
};
};
};
###### implementation
config = mkIf config.services.udisks.enable {
environment.systemPackages = [ pkgs.udisks ];
services.dbus.packages = [ pkgs.udisks ];
};
}