nixpkgs/nixos/modules/services/hardware/udisks.nix
Eelco Dolstra 2ba552fb2e Revert "Fix services.udisks.enable."
This reverts commit 02a30bea44,
necessary after reverting to udisks 1.0.4.

http://hydra.nixos.org/build/10194840
2014-04-08 13:28:24 +02:00

46 lines
713 B
Nix

# Udisks daemon.
{ config, pkgs, ... }:
with pkgs.lib;
{
###### interface
options = {
services.udisks = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable 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 ];
system.activationScripts.udisks =
''
mkdir -m 0755 -p /var/lib/udisks
'';
services.udev.packages = [ pkgs.udisks ];
};
}