diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-07-23 01:30:36 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-07-23 01:30:36 +0000 |
commit | 83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7 (patch) | |
tree | 36d6271e92987900fc69856e74210c76a8493676 /modules/services/hardware/udisks.nix | |
parent | 3a1b6266e4cae111d0c1e72f7dad5a20220be5fa (diff) | |
download | nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.tar nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.tar.gz nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.tar.bz2 nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.tar.lz nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.tar.xz nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.tar.zst nixlib-83846d8417e7c3d78dc2fb1091d2d8c59f35d4e7.zip |
* NixOS module for Udisks.
svn path=/nixos/trunk/; revision=27909
Diffstat (limited to 'modules/services/hardware/udisks.nix')
-rw-r--r-- | modules/services/hardware/udisks.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/services/hardware/udisks.nix b/modules/services/hardware/udisks.nix new file mode 100644 index 000000000000..0b3dbe47d157 --- /dev/null +++ b/modules/services/hardware/udisks.nix @@ -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 ]; + + }; + +} |