Author: eelco
Date: Sat Jul 23 01:30:36 2011
New Revision: 27909
URL: https://svn.nixos.org/websvn/nix/?rev=27909&sc=1
Log:
* NixOS module for Udisks.
Added:
nixos/trunk/modules/services/hardware/udisks.nix
Modified:
nixos/trunk/modules/module-list.nix
Modified: nixos/trunk/modules/module-list.nix
==============================================================================
--- nixos/trunk/modules/module-list.nix Sat Jul 23 01:29:51 2011 (r27908)
+++ nixos/trunk/modules/module-list.nix Sat Jul 23 01:30:36 2011 (r27909)
@@ -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
Added: nixos/trunk/modules/services/hardware/udisks.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixos/trunk/modules/services/hardware/udisks.nix Sat Jul 23 01:30:36
2011 (r27909)
@@ -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 ];
+
+ };
+
+}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits